You are here

protected function ExtraFieldManagerBase::entityBundleKey in Extra Field 8.2

Creates a key string with entity type and bundle.

Parameters

string $entityType: The entity type.

string $bundle: The bundle.

Return value

string Formatted string.

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

File

src/Plugin/ExtraFieldManagerBase.php, line 162

Class

ExtraFieldManagerBase
Base class for Extra Field plugin managers.

Namespace

Drupal\extra_field\Plugin

Code

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