You are here

protected function TaxonomyTermMatch::isSupported in Acquia Content Hub 8.2

Checks should object be processed or not.

Parameters

\Acquia\ContentHubClient\CDF\CDFObject $cdf_object: CDF Object.

Return value

bool TRUE if CDF object is taxonomy term.

1 call to TaxonomyTermMatch::isSupported()
TaxonomyTermMatch::onLoadLocalEntity in modules/acquia_contenthub_subscriber/src/EventSubscriber/LoadLocalEntity/TaxonomyTermMatch.php
Load local terms with the same name, vocabulary and relative parent.

File

modules/acquia_contenthub_subscriber/src/EventSubscriber/LoadLocalEntity/TaxonomyTermMatch.php, line 81

Class

TaxonomyTermMatch
Class TaxonomyTermMatch.

Namespace

Drupal\acquia_contenthub_subscriber\EventSubscriber\LoadLocalEntity

Code

protected function isSupported(CDFObject $cdf_object) : bool {
  $type = $cdf_object
    ->getAttribute('entity_type');
  return $type
    ->getValue()[CDFObject::LANGUAGE_UNDETERMINED] === 'taxonomy_term';
}