class PurlProvider in Persistent URL 8
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\purl\Annotation\PurlProvider
Expanded class hierarchy of PurlProvider
1 file declares its use of PurlProvider
- StaticProvider.php in src/
Plugin/ Purl/ Provider/ StaticProvider.php
1 class is annotated with PurlProvider
- StaticProvider in src/
Plugin/ Purl/ Provider/ StaticProvider.php - Plugin annotation @PurlProvider( id="static" )
File
- src/
Annotation/ PurlProvider.php, line 10
Namespace
Drupal\purl\AnnotationView source
class PurlProvider 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:: |
|
PurlProvider:: |
public | function |
Constructs a Plugin object. Overrides Plugin:: |