protected function EntityDeleteActionDeriver::isApplicable in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityDeleteActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityDeleteActionDeriver::isApplicable()
Indicates whether the deriver can be used for the provided entity type.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
Return value
bool TRUE if the entity type can be used, FALSE otherwise.
Overrides EntityActionDeriverBase::isApplicable
File
- core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ Derivative/ EntityDeleteActionDeriver.php, line 36
Class
- EntityDeleteActionDeriver
- Provides an action deriver that finds entity types with delete form.
Namespace
Drupal\Core\Action\Plugin\Action\DerivativeCode
protected function isApplicable(EntityTypeInterface $entity_type) {
return $entity_type
->hasLinkTemplate('delete-multiple-form');
}