class PurlMethod in Persistent URL 8
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\purl\Annotation\PurlMethod
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\AnnotationView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
PurlMethod:: |
public | function |
Constructs a Plugin object. Overrides Plugin:: |