You are here

abstract class BreadcrumbTitleResolverBase in Breadcrumb Manager 8

Base class for Breadcrumb title resolver plugins.

Hierarchy

Expanded class hierarchy of BreadcrumbTitleResolverBase

4 files declare their use of BreadcrumbTitleResolverBase
ContextReaction.php in modules/breadcrumb_manager_context/src/Plugin/BreadcrumbTitleResolver/ContextReaction.php
MenuLinkTitle.php in src/Plugin/BreadcrumbTitleResolver/MenuLinkTitle.php
RawPathComponent.php in src/Plugin/BreadcrumbTitleResolver/RawPathComponent.php
RequestTitle.php in src/Plugin/BreadcrumbTitleResolver/RequestTitle.php

File

src/Plugin/BreadcrumbTitleResolverBase.php, line 13

Namespace

Drupal\breadcrumb_manager\Plugin
View source
abstract class BreadcrumbTitleResolverBase extends PluginBase implements BreadcrumbTitleResolverInterface, ContainerFactoryPluginInterface {
  use DependencySerializationTrait;
  protected $isActive;

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition);
  }

  /**
   * {@inheritdoc}
   */
  public function isActive() {
    if (!isset($this->isActive)) {
      $this
        ->setActive();
    }
    return $this->isActive;
  }

  /**
   * {@inheritdoc}
   */
  public function setActive($active = TRUE) {
    $this->isActive = (bool) $active;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BreadcrumbTitleResolverBase::$isActive protected property 1
BreadcrumbTitleResolverBase::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create 3
BreadcrumbTitleResolverBase::isActive public function Is active. Overrides BreadcrumbTitleResolverInterface::isActive 1
BreadcrumbTitleResolverBase::setActive public function Set active. Overrides BreadcrumbTitleResolverInterface::setActive
BreadcrumbTitleResolverInterface::getTitle public function Get title. 4
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92