ActionFormBase::save

public ActionFormBase::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operat

ActionFormBase::form

public ActionFormBase::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/action/src/ActionFormBase.php, line 60 Class ActionFormBase Provides a base form for action forms. Namespace Drupal\action Code public function form(array $form, FormStateInterface $form_state) { $form['label'] = array( '#typ

ActionFormBase::exists

public ActionFormBase::exists($id) Determines if the action already exists. Parameters string $id: The action ID Return value bool TRUE if the action exists, FALSE otherwise. File core/modules/action/src/ActionFormBase.php, line 104 Class ActionFormBase Provides a base form for action forms. Namespace Drupal\action Code public function exists($id) { $action = $this->storage->load($id); return !empty($action); }

ActionFormBase::create

public static ActionFormBase::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service c

ActionFormBase::buildForm

public ActionFormBase::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides EntityForm::buildForm File core/modules/action/src/ActionFormBase.php, line 52 Class ActionFormBase Provides a base form for action forms. Namespace Drupal\action Code public func

ActionFormBase::actions

protected ActionFormBase::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/action/src/ActionFormBase.php, line 112 Class ActionFormBase Provides a base form for action forms. Namespace Drupal\action Code protected function actions(array $form, FormStateInterface $form_state) {

ActionFormBase::$storage

The action storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/action/src/ActionFormBase.php, line 28 Class ActionFormBase Provides a base form for action forms. Namespace Drupal\action Code protected $storage;

ActionFormBase

Provides a base form for action forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\action\ActionFormBase File core/modules/action/src/ActionFormBase.php, line 14 Namespace Drupal\action Members Name Modifiers

ActionDeleteForm::getCancelUrl

public ActionDeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides EntityDeleteFormTrait::getCancelUrl File core/modules/action/src/Form/ActionDeleteForm.php, line 16 Class ActionDeleteForm Builds a form to delete an action. Namespace Drupal\action\Form Code public function getCancelUrl() { return new Url('entity.action.collection'); }

ActionDeleteForm

Builds a form to delete an action. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses EntityDeleteFormTraitclass \Dru