You are here

public function MediaFinderInterface::shouldBeAdded in Group Media 8.2

Checks whether media item should be considered as group content.

Parameters

\Drupal\media\MediaInterface $media: Media item to check.

\Drupal\Core\Entity\EntityInterface $entity: Host entity.

string $field_name: The field name where the media was found.

Return value

bool TRUE if item should be processed, FALSE is other case.

1 method overrides MediaFinderInterface::shouldBeAdded()
MediaFinderBase::shouldBeAdded in src/Plugin/MediaFinder/MediaFinderBase.php
Checks whether media item should be considered as group content.

File

src/MediaFinderInterface.php, line 59

Class

MediaFinderInterface
Interface MediaFinderInterface.

Namespace

Drupal\groupmedia

Code

public function shouldBeAdded(MediaInterface $media, EntityInterface $entity, $field_name);