class ViewsBuilder in Views Templates 8
Defines a ViewsBuilder annotation object.
@todo For some reason this not getting picked up by the manager.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\views_templates\Annotation\ViewsBuilder
Expanded class hierarchy of ViewsBuilder
2 classes are annotated with ViewsBuilder
- NodeViewBuilder in tests/
modules/ views_templates_builder_test/ src/ Plugin/ ViewsTemplateBuilder/ NodeViewBuilder.php - Test comment.
- ViewDuplicatorTest in tests/
modules/ views_templates_builder_test/ src/ Plugin/ ViewsTemplateBuilder/ ViewDuplicatorTest.php - The ViewsBuilder.
File
- src/
Annotation/ ViewsBuilder.php, line 14
Namespace
Drupal\views_templates\AnnotationView source
class ViewsBuilder extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* Description for list page.
*
* @var string
*
* @ingroup plugin_translatable
*/
public $description = '';
/**
* The administrative label of the View Builder.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $admin_label = '';
/**
* Class used to retrieve derivative definitions of the Views Builder.
*
* @var string
*/
public $derivative = '';
/**
* Base table of View.
*
* @var string
*/
public $base_table;
/**
* The module that provides the template.
*
* @var string
*/
public $module;
/**
* Keys and values to replaced in the Views Template.
*
* @var array
*/
public $replace_values;
/**
* Id of Views template.
*
* @var string
*/
public $view_template_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:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
ViewsBuilder:: |
public | property | The administrative label of the View Builder. | |
ViewsBuilder:: |
public | property | Base table of View. | |
ViewsBuilder:: |
public | property | Class used to retrieve derivative definitions of the Views Builder. | |
ViewsBuilder:: |
public | property | Description for list page. | |
ViewsBuilder:: |
public | property | The plugin ID. | |
ViewsBuilder:: |
public | property | The module that provides the template. | |
ViewsBuilder:: |
public | property | Keys and values to replaced in the Views Template. | |
ViewsBuilder:: |
public | property | Id of Views template. |