public function EntityAliasTypeBase::getLabel in Pathauto 8
Get the label.
Return value
string The label.
Overrides AliasTypeInterface::getLabel
2 calls to EntityAliasTypeBase::getLabel()
- EntityAliasTypeBase::batchDelete in src/
Plugin/ pathauto/ AliasType/ EntityAliasTypeBase.php - Gets called to batch delete all aliases created by pathauto.
- EntityAliasTypeBase::bulkUpdate in src/
Plugin/ pathauto/ AliasType/ EntityAliasTypeBase.php - Update the URL aliases for multiple entities.
1 method overrides EntityAliasTypeBase::getLabel()
- Broken::getLabel in src/
Plugin/ pathauto/ AliasType/ Broken.php - Get the label.
File
- src/
Plugin/ pathauto/ AliasType/ EntityAliasTypeBase.php, line 122
Class
- EntityAliasTypeBase
- A pathauto alias type plugin for entities with canonical links.
Namespace
Drupal\pathauto\Plugin\pathauto\AliasTypeCode
public function getLabel() {
$definition = $this
->getPluginDefinition();
// Cast the admin label to a string since it is an object.
// @see \Drupal\Core\StringTranslation\TranslationWrapper
return (string) $definition['label'];
}