You are here

protected function GroupMedia::getMediaBundle in Group Media 8

Retrieves the media bundle this plugin supports.

Return value

\Drupal\media_entity\MediaBundleInterface The media bundle this plugin supports.

File

src/Plugin/GroupContentEnabler/GroupMedia.php, line 35

Class

GroupMedia
Provides a content enabler for nodes.

Namespace

Drupal\groupmedia\Plugin\GroupContentEnabler

Code

protected function getMediaBundle() {
  return MediaBundle::load($this
    ->getEntityBundle());
}