You are here

public function ContentModerationInterface::appliesToEntityTypeAndBundle in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::appliesToEntityTypeAndBundle()

Checks if the workflow applies to the supplied entity type and bundle.

Parameters

string $entity_type_id: The entity type ID to check.

string $bundle_id: The bundle ID to check.

Return value

bool TRUE if the workflow applies to the supplied entity type ID and bundle ID. FALSE if not.

1 method overrides ContentModerationInterface::appliesToEntityTypeAndBundle()
ContentModeration::appliesToEntityTypeAndBundle in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
Checks if the workflow applies to the supplied entity type and bundle.

File

core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php, line 44

Class

ContentModerationInterface
Interface for ContentModeration WorkflowType plugin.

Namespace

Drupal\content_moderation\Plugin\WorkflowType

Code

public function appliesToEntityTypeAndBundle($entity_type_id, $bundle_id);