function PluginWithFormsTrait::hasFormClass

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/PluginWithFormsTrait.php \Drupal\Core\Plugin\PluginWithFormsTrait::hasFormClass()
  2. 8.9.x core/lib/Drupal/Core/Plugin/PluginWithFormsTrait.php \Drupal\Core\Plugin\PluginWithFormsTrait::hasFormClass()
  3. 11.x core/lib/Drupal/Core/Plugin/PluginWithFormsTrait.php \Drupal\Core\Plugin\PluginWithFormsTrait::hasFormClass()

Implements \Drupal\Core\Plugin\PluginWithFormsInterface::hasFormClass().

File

core/lib/Drupal/Core/Plugin/PluginWithFormsTrait.php, line 25

Class

PluginWithFormsTrait
Provides a trait with typical behavior for plugins which have forms.

Namespace

Drupal\Core\Plugin

Code

public function hasFormClass($operation) {
    return !empty($this->getFormClass($operation));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.