Automattic\WooCommerce\Blocks\BlockTypes
ProductGalleryLargeImage::get_open_dialog_directives()
Get directives for opening the dialog.
Method of the class: ProductGalleryLargeImage{}
No Hooks.
Returns
Array
.
Usage
// private - for code of main (parent) class only $result = $this->get_open_dialog_directives( $block_context );
- $block_context(array) (required)
- The block context.
ProductGalleryLargeImage::get_open_dialog_directives() ProductGalleryLargeImage::get open dialog directives code WC 9.8.4
private function get_open_dialog_directives( $block_context ) { if ( ! $block_context['fullScreenOnClick'] ) { return array(); } return array( 'data-wp-on--click' => 'actions.openDialog', ); }