You are here

class PurlMethod in Persistent URL 8

Hierarchy

Expanded class hierarchy of PurlMethod

2 files declare their use of PurlMethod
PathPrefixMethod.php in src/Plugin/Purl/Method/PathPrefixMethod.php
SubdomainMethod.php in src/Plugin/Purl/Method/SubdomainMethod.php
2 classes are annotated with PurlMethod
PathPrefixMethod in src/Plugin/Purl/Method/PathPrefixMethod.php
Plugin annotation @PurlMethod( id="path_prefix" )
SubdomainMethod in src/Plugin/Purl/Method/SubdomainMethod.php
Plugin annotation @PurlMethod( id="subdomain", name="Subdomain" )

File

src/Annotation/PurlMethod.php, line 10

Namespace

Drupal\purl\Annotation
View source
class PurlMethod extends Plugin {
  public function __construct($values) {
    parent::__construct($values);
    if (!isset($this->definition['name'])) {
      $id = preg_replace('/([^a-zA-Z0-9])+/', ' ', $this->definition['id']);
      $this->definition['name'] = ucwords($id);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
PurlMethod::__construct public function Constructs a Plugin object. Overrides Plugin::__construct