function ContentModerationInterface::appliesToEntityTypeAndBundle

Same name in other branches
  1. 9 core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::appliesToEntityTypeAndBundle()
  2. 8.9.x core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::appliesToEntityTypeAndBundle()
  3. 10 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);

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