function AddItemToToolbar::create

Same name in other branches
  1. 11.x core/modules/ckeditor5/src/Plugin/ConfigAction/AddItemToToolbar.php \Drupal\ckeditor5\Plugin\ConfigAction\AddItemToToolbar::create()

Overrides ContainerFactoryPluginInterface::create

File

core/modules/ckeditor5/src/Plugin/ConfigAction/AddItemToToolbar.php, line 31

Class

AddItemToToolbar

Namespace

Drupal\ckeditor5\Plugin\ConfigAction

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($container->get(ConfigManagerInterface::class), $container->get(CKEditor5PluginManagerInterface::class), $plugin_id);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.