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);
}
doc_Drupal
2016-10-29 08:43:18
Comments
Leave a Comment

Please login to continue.