You are here

AliasTypeInterface.php in View Mode Page 3.2.x

Same filename and directory in other branches
  1. 8.3 src/AliasTypeInterface.php
  2. 4.0.x src/AliasTypeInterface.php

File

src/AliasTypeInterface.php
View source
<?php

namespace Drupal\view_mode_page;

use Drupal\Component\Plugin\DerivativeInspectionInterface;
use Drupal\Core\Plugin\ContextAwarePluginInterface;

/**
 * Provides an interface for view_mode_page alias types.
 */
interface AliasTypeInterface extends ContextAwarePluginInterface, DerivativeInspectionInterface {

  /**
   * Get the label.
   *
   * @return string
   *   The label.
   */
  public function getLabel();

  /**
   * Get the token types.
   *
   * @return string[]
   *   The token types.
   */
  public function getTokenTypes();

  /**
   * Determines if this plugin type can apply a given object.
   *
   * @param object $object
   *   The object used to determine if this plugin can apply.
   *
   * @return bool
   *   Whether this plugin applies to the given object.
   */
  public function applies($object);

}

Interfaces

Namesort descending Description
AliasTypeInterface Provides an interface for view_mode_page alias types.