for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YIKES Inc. Easy Mailchimp Forms Plugin.
*
* @package YIKES\EasyForms
* @author Freddie Mixell
* @license GPL2
*/
namespace YIKES\EasyForms\Assets;
use YIKES\EasyForms\Plugin;
use Closure;
* Class BlockAsset.
* @since %VERSION%
* @package YIKES\EasyForms\Assets
final class BlockAsset extends ScriptAsset {
const ENQUEUE_PRIORITY = 5;
* Get the enqueue action to use.
* @return string Enqueue action name.
protected function get_enqueue_action() {
return 'enqueue_block_editor_assets';
}
* Get the enqueue closure to use.
* @return Closure
protected function get_enqueue_closure() {
return function () {
call_user_func( parent::get_enqueue_closure() );
wp_set_script_translations( $this->handle, 'yikes-inc-easy-mailchimp-extender' );
};