You are here

interface BreadcrumbTitleResolverInterface in Breadcrumb Manager 8

Defines an interface for Breadcrumb title resolver plugins.

Hierarchy

Expanded class hierarchy of BreadcrumbTitleResolverInterface

All classes that implement BreadcrumbTitleResolverInterface

File

src/Plugin/BreadcrumbTitleResolverInterface.php, line 12

Namespace

Drupal\breadcrumb_manager\Plugin
View source
interface BreadcrumbTitleResolverInterface extends PluginInspectionInterface {

  /**
   * Get title.
   *
   * @param string $path
   *   The path.
   * @param \Symfony\Component\HttpFoundation\Request $request
   *   The Request.
   * @param \Drupal\Core\Routing\RouteMatchInterface $route_match
   *   The Route match.
   *
   * @return string
   *   The resolved title.
   */
  public function getTitle($path, Request $request, RouteMatchInterface $route_match);

  /**
   * Set active.
   *
   * @param bool $active
   *   A boolean indicating whether the title resolver is active or not.
   */
  public function setActive($active = TRUE);

  /**
   * Is active.
   *
   * @return bool
   *   A boolean indicating whether the title resolver is active or not.
   */
  public function isActive();

}

Members

Namesort descending Modifiers Type Description Overrides
BreadcrumbTitleResolverInterface::getTitle public function Get title. 4
BreadcrumbTitleResolverInterface::isActive public function Is active. 1
BreadcrumbTitleResolverInterface::setActive public function Set active. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2