*
* @var array
*/
- protected $defaults = array(
+ protected $defaults = [
// Add required and optional plugin properties.
'id' => '',
'label' => '',
- );
+ ];
/**
- * Constructs a {{ plugin_class }}Manager object.
+ * Constructs a new {{ plugin_class }}Manager object.
*
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler.
public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
// Add more services as required.
$this->moduleHandler = $module_handler;
- $this->setCacheBackend($cache_backend, '{{ plugin_name }}', array('{{ plugin_name }}'));
+ $this->setCacheBackend($cache_backend, '{{ plugin_name }}', ['{{ plugin_name }}']);
}
/**