function FieldTypePluginManager::getEntityTypeUiDefinitions

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Field/FieldTypePluginManager.php \Drupal\Core\Field\FieldTypePluginManager::getEntityTypeUiDefinitions()

Get the field type definitions that can be added via UI for an entity type.

Parameters

string $entity_type_id: The entity type id.

Return value

array An array of field type definitions.

Overrides FieldTypePluginManagerInterface::getEntityTypeUiDefinitions

File

core/lib/Drupal/Core/Field/FieldTypePluginManager.php, line 229

Class

FieldTypePluginManager
Plugin manager for 'field type' plugins.

Namespace

Drupal\Core\Field

Code

public function getEntityTypeUiDefinitions(string $entity_type_id) : array {
  $ui_definitions = $this->getUiDefinitions();
  $this->moduleHandler
    ->alter('field_info_entity_type_ui_definitions', $ui_definitions, $entity_type_id);
  return $ui_definitions;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.