public function FieldTypePluginManager::getPluginClass in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/FieldTypePluginManager.php \Drupal\Core\Field\FieldTypePluginManager::getPluginClass()
Returns the PHP class that implements the field type plugin.
Parameters
string $type: A field type name.
Return value
string Field type plugin class name.
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException Thrown if the field type plugin name is invalid.
Overrides FieldTypePluginManagerInterface::getPluginClass
1 call to FieldTypePluginManager::getPluginClass()
- FieldTypePluginManager::getPreconfiguredOptions in core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManager.php - Returns preconfigured field options for a field type.
File
- core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManager.php, line 169
Class
- FieldTypePluginManager
- Plugin manager for 'field type' plugins.
Namespace
Drupal\Core\FieldCode
public function getPluginClass($type) {
return $this
->getDefinition($type)['class'];
}