class RequestTitle in Breadcrumb Manager 8
Class RequestTitle.
@BreadcrumbTitleResolver( id = "request_title", label = @Translation("Page title"), description = @Translation("Use page title if exists."), weight = 1 )
@package Drupal\breadcrumb_manager\Plugin\BreadcrumbTitleResolver
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface- class \Drupal\breadcrumb_manager\Plugin\BreadcrumbTitleResolverBase implements BreadcrumbTitleResolverInterface, ContainerFactoryPluginInterface uses DependencySerializationTrait- class \Drupal\breadcrumb_manager\Plugin\BreadcrumbTitleResolver\RequestTitle
 
 
- class \Drupal\breadcrumb_manager\Plugin\BreadcrumbTitleResolverBase implements BreadcrumbTitleResolverInterface, ContainerFactoryPluginInterface uses DependencySerializationTrait
Expanded class hierarchy of RequestTitle
File
- src/Plugin/ BreadcrumbTitleResolver/ RequestTitle.php, line 25 
Namespace
Drupal\breadcrumb_manager\Plugin\BreadcrumbTitleResolverView source
class RequestTitle extends BreadcrumbTitleResolverBase {
  /**
   * The Title Resolver service.
   *
   * @var \Drupal\Core\Controller\TitleResolverInterface
   */
  protected $titleResolver;
  /**
   * {@inheritdoc}
   */
  public function __construct(array $configuration, $plugin_id, $plugin_definition, TitleResolverInterface $title_resolver) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->titleResolver = $title_resolver;
  }
  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container
      ->get('title_resolver'));
  }
  /**
   * {@inheritdoc}
   */
  public function getTitle($path, Request $request, RouteMatchInterface $route_match) {
    $route = $route_match
      ->getRouteObject();
    return $this->titleResolver
      ->getTitle($request, $route);
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| BreadcrumbTitleResolverBase:: | protected | property | 1 | |
| BreadcrumbTitleResolverBase:: | public | function | Is active. Overrides BreadcrumbTitleResolverInterface:: | 1 | 
| BreadcrumbTitleResolverBase:: | public | function | Set active. Overrides BreadcrumbTitleResolverInterface:: | |
| DependencySerializationTrait:: | protected | property | An array of entity type IDs keyed by the property name of their storages. | |
| DependencySerializationTrait:: | protected | property | An array of service IDs keyed by property name used for serialization. | |
| DependencySerializationTrait:: | public | function | 1 | |
| DependencySerializationTrait:: | public | function | 2 | |
| PluginBase:: | protected | property | Configuration information passed into the plugin. | 1 | 
| PluginBase:: | protected | property | The plugin implementation definition. | 1 | 
| PluginBase:: | protected | property | The plugin_id. | |
| PluginBase:: | constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
| PluginBase:: | public | function | Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: | |
| PluginBase:: | public | function | Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: | |
| PluginBase:: | public | function | Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: | 3 | 
| PluginBase:: | public | function | Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: | |
| PluginBase:: | public | function | Determines if the plugin is configurable. | |
| RequestTitle:: | protected | property | The Title Resolver service. | |
| RequestTitle:: | public static | function | Creates an instance of the plugin. Overrides BreadcrumbTitleResolverBase:: | |
| RequestTitle:: | public | function | Get title. Overrides BreadcrumbTitleResolverInterface:: | |
| RequestTitle:: | public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. Overrides PluginBase:: | 
