function 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.