function RestResourceConfig::getLabelFromPlugin

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\Entity

Code

protected function getLabelFromPlugin() {
    $plugin_definition = $this->getResourcePluginManager()
        ->getDefinition([
        'id' => $this->plugin_id,
    ]);
    return $plugin_definition['label'];
}

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