function BlockContent::getFilters
Same name in other branches
- 8.9.x core/modules/block_content/src/Plugin/views/wizard/BlockContent.php \Drupal\block_content\Plugin\views\wizard\BlockContent::getFilters()
- 10 core/modules/block_content/src/Plugin/views/wizard/BlockContent.php \Drupal\block_content\Plugin\views\wizard\BlockContent::getFilters()
- 11.x core/modules/block_content/src/Plugin/views/wizard/BlockContent.php \Drupal\block_content\Plugin\views\wizard\BlockContent::getFilters()
Overrides WizardPluginBase::getFilters
File
-
core/
modules/ block_content/ src/ Plugin/ views/ wizard/ BlockContent.php, line 21
Class
- BlockContent
- Used for creating 'block_content' views with the wizard.
Namespace
Drupal\block_content\Plugin\views\wizardCode
public function getFilters() {
$filters = parent::getFilters();
$filters['reusable'] = [
'id' => 'reusable',
'plugin_id' => 'boolean',
'table' => $this->base_table,
'field' => 'reusable',
'value' => '1',
'entity_type' => $this->entityTypeId,
'entity_field' => 'reusable',
];
return $filters;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.