- /**
- * The action manager.
- *
- * @var \Drupal\Core\Action\ActionManager
- */
- protected $actionManager;
-
- /**
- * Constructs a new ActionAddForm.
- *
- * @param \Drupal\Core\Entity\EntityStorageInterface $storage
- * The action storage.
- * @param \Drupal\Core\Action\ActionManager $action_manager
- * The action plugin manager.
- */
- public function __construct(EntityStorageInterface $storage, ActionManager $action_manager) {
- parent::__construct($storage);
-
- $this->actionManager = $action_manager;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(ContainerInterface $container) {
- return new static(
- $container->get('entity.manager')->getStorage('action'),
- $container->get('plugin.manager.action')
- );
- }
-