You are here

abstract public function ExcludeContentFieldBase::shouldExclude in Acquia Content Hub 8.2

Prevent entity fields from being added to the serialized output.

Parameters

\Drupal\acquia_contenthub\Event\ExcludeEntityFieldEvent $event: The content entity field serialization event.

1 call to ExcludeContentFieldBase::shouldExclude()
ExcludeContentFieldBase::excludeContentField in src/EventSubscriber/ExcludeContentField/ExcludeContentFieldBase.php
Sets the "exclude" flag.
5 methods override ExcludeContentFieldBase::shouldExclude()
RemoveIdField::shouldExclude in src/EventSubscriber/ExcludeContentField/RemoveIdField.php
Prevent entity fields from being added to the serialized output.
RemoveLanguageField::shouldExclude in src/EventSubscriber/ExcludeContentField/RemoveLanguageField.php
Prevent entity fields from being added to the serialized output.
RemoveParagraphParentId::shouldExclude in src/EventSubscriber/ExcludeContentField/RemoveParagraphParentId.php
Prevent entity fields from being added to the serialized output.
RemovePathAliasField::shouldExclude in src/EventSubscriber/ExcludeContentField/RemovePathAliasField.php
Prevent entity fields from being added to the serialized output.
RemoveRevisionField::shouldExclude in src/EventSubscriber/ExcludeContentField/RemoveRevisionField.php
Prevent entity fields from being added to the serialized output.

File

src/EventSubscriber/ExcludeContentField/ExcludeContentFieldBase.php, line 41

Class

ExcludeContentFieldBase
Class ExcludeContentFieldBase.

Namespace

Drupal\acquia_contenthub\EventSubscriber\ExcludeContentField

Code

public abstract function shouldExclude(ExcludeEntityFieldEvent $event) : bool;