You are here

protected function ExtraFieldDisplayManager::entityBundleKey in Extra Field 8

Creates a key string with entity type and bundle.

Parameters

string $entityType: The entity type.

string $bundle: The bundle.

Return value

string Formatted string.

2 calls to ExtraFieldDisplayManager::entityBundleKey()
ExtraFieldDisplayManager::entityView in src/Plugin/ExtraFieldDisplayManager.php
Appends the renderable data from ExtraField plugins to hook_entity_view().
ExtraFieldDisplayManager::supportedEntityBundles in src/Plugin/ExtraFieldDisplayManager.php
Returns entity-bundle combinations this plugin supports.

File

src/Plugin/ExtraFieldDisplayManager.php, line 237

Class

ExtraFieldDisplayManager
Manages Extra Field plugins.

Namespace

Drupal\extra_field\Plugin

Code

protected function entityBundleKey($entityType, $bundle) {
  return "{$entityType}.{$bundle}";
}