public function ActionFormControllerBase::exists

Determines if the action already exists.

Parameters

string $id: The action ID

Return value

bool TRUE if the action exists, FALSE otherwise.

File

drupal/core/modules/action/lib/Drupal/action/ActionFormControllerBase.php, line 112
Contains Drupal\action\ActionEditFormController.

Class

ActionFormControllerBase
Provides a base form controller for action forms.

Namespace

Drupal\action

Code

public function exists($id) {
  $actions = $this->storageController
    ->load(array(
    $id,
  ));
  return isset($actions[$id]);
}