function ElementInfoManagerInterface::getIdFromClass
Get the plugin ID from the class.
Whenever possible, use the class type inference. Calling this method should not be necessary.
@internal
Parameters
string $class: The class of an element object.
Return value
?string The plugin ID or null if not found.
1 method overrides ElementInfoManagerInterface::getIdFromClass()
- ElementInfoManager::getIdFromClass in core/
lib/ Drupal/ Core/ Render/ ElementInfoManager.php - Get the plugin ID from the class.
File
-
core/
lib/ Drupal/ Core/ Render/ ElementInfoManagerInterface.php, line 122
Class
- ElementInfoManagerInterface
- Collects available render array element types.
Namespace
Drupal\Core\RenderCode
public function getIdFromClass(string $class) : ?string;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.