protected function RestResourceConfig::getLabelFromPlugin in Drupal 8
The label callback for this configuration entity.
Return value
string The label.
File
- core/
modules/ rest/ src/ Entity/ RestResourceConfig.php, line 96
Class
- RestResourceConfig
- Defines a RestResourceConfig configuration entity class.
Namespace
Drupal\rest\EntityCode
protected function getLabelFromPlugin() {
$plugin_definition = $this
->getResourcePluginManager()
->getDefinition([
'id' => $this->plugin_id,
]);
return $plugin_definition['label'];
}