function SaveAction::create
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Action/Plugin/Action/SaveAction.php \Drupal\Core\Action\Plugin\Action\SaveAction::create()
- 10 core/lib/Drupal/Core/Action/Plugin/Action/SaveAction.php \Drupal\Core\Action\Plugin\Action\SaveAction::create()
- 11.x core/lib/Drupal/Core/Action/Plugin/Action/SaveAction.php \Drupal\Core\Action\Plugin\Action\SaveAction::create()
Overrides EntityActionBase::create
File
-
core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ SaveAction.php, line 50
Class
- SaveAction
- Provides an action that can save any entity.
Namespace
Drupal\Core\Action\Plugin\ActionCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('entity_type.manager'), $container->get('datetime.time'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.