ElementInfoManagerInterface
interface ElementInfoManagerInterface implements DiscoveryInterface (View source)
Collects available render array element types.
Methods
Gets a specific plugin definition.
Indicates if a specific plugin definition exists.
Retrieves the default properties for the defined element type.
Retrieves a single property for the defined element type.
Details
mixed
getDefinition(string $plugin_id, bool $exception_on_invalid = TRUE)
Gets a specific plugin definition.
array
getDefinitions()
Gets the definition of all plugins for this type.
bool
hasDefinition(string $plugin_id)
Indicates if a specific plugin definition exists.
array
getInfo(string $type)
Retrieves the default properties for the defined element type.
Each of the element types defined by this hook is assumed to have a matching theme hook, which should be registered with hook_theme() as normal.
For more information about custom element types see the explanation at https://www.drupal.org/node/169815.
mixed
getInfoProperty(string $type, string $property_name, $default = NULL)
Retrieves a single property for the defined element type.