public function PluginWithFormsTrait::hasFormClass in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Plugin/PluginWithFormsTrait.php \Drupal\Core\Plugin\PluginWithFormsTrait::hasFormClass()
- 10 core/lib/Drupal/Core/Plugin/PluginWithFormsTrait.php \Drupal\Core\Plugin\PluginWithFormsTrait::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\PluginCode
public function hasFormClass($operation) {
return !empty($this
->getFormClass($operation));
}