Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / pathauto / src / AliasTypeInterface.php
1 <?php
2
3 namespace Drupal\pathauto;
4
5 use Drupal\Component\Plugin\DerivativeInspectionInterface;
6 use Drupal\Core\Plugin\ContextAwarePluginInterface;
7
8 /**
9  * Provides an interface for pathauto alias types.
10  */
11 interface AliasTypeInterface extends ContextAwarePluginInterface, DerivativeInspectionInterface {
12
13   /**
14    * Get the label.
15    *
16    * @return string
17    *   The label.
18    */
19   public function getLabel();
20
21   /**
22    * Get the token types.
23    *
24    * @return string[]
25    *   The token types.
26    */
27   public function getTokenTypes();
28
29   /**
30    * Returns the source prefix; used for bulk delete.
31    *
32    * @return string
33    *   The source path prefix.
34    */
35   public function getSourcePrefix();
36
37   /**
38    * Determines if this plugin type can apply a given object.
39    *
40    * @param object $object
41    *   The object used to determine if this plugin can apply.
42    *
43    * @return bool
44    *   Whether this plugin applies to the given object.
45    */
46   public function applies($object);
47
48 }