ContextualLinkDefault.php in Drupal 9
File
core/lib/Drupal/Core/Menu/ContextualLinkDefault.php
View source
<?php
namespace Drupal\Core\Menu;
use Drupal\Component\Plugin\PluginBase;
use Symfony\Component\HttpFoundation\Request;
class ContextualLinkDefault extends PluginBase implements ContextualLinkInterface {
public function getTitle(Request $request = NULL) {
return (string) $this->pluginDefinition['title'];
}
public function getRouteName() {
return $this->pluginDefinition['route_name'];
}
public function getGroup() {
return $this->pluginDefinition['group'];
}
public function getOptions() {
return $this->pluginDefinition['options'];
}
public function getWeight() {
return $this->pluginDefinition['weight'];
}
}