3 namespace Drupal\Core\Action\Plugin\Action\Derivative;
5 use Drupal\Core\Entity\EntityPublishedInterface;
6 use Drupal\Core\Entity\EntityTypeInterface;
9 * Provides an action deriver that finds publishable entity types.
11 * @see \Drupal\Core\Action\Plugin\Action\PublishAction
12 * @see \Drupal\Core\Action\Plugin\Action\UnpublishAction
14 class EntityPublishedActionDeriver extends EntityActionDeriverBase {
19 protected function isApplicable(EntityTypeInterface $entity_type) {
20 return $entity_type->entityClassImplements(EntityPublishedInterface::class);