Inventory_Presser_Admin_Photo_Arranger::is_gallery_block_with_specific_css_class( mixed $block )

is_gallery_block_with_specific_css_class


Parameters

$block

(mixed) (Required)


Return

(bool)


Source

File: includes/admin/class-admin-photo-arranger.php

	protected function is_gallery_block_with_specific_css_class( $block ) {
		return ! empty( $block['blockName'] )
			&& 'core/gallery' === $block['blockName']
			&& ! empty( $block['attrs']['className'] )
			&& false !== mb_strpos( $block['attrs']['className'], self::CSS_CLASS );
	}