public function BlockContent::getFilters in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block_content/src/Plugin/views/wizard/BlockContent.php \Drupal\block_content\Plugin\views\wizard\BlockContent::getFilters()
- 9 core/modules/block_content/src/Plugin/views/wizard/BlockContent.php \Drupal\block_content\Plugin\views\wizard\BlockContent::getFilters()
Gets the filters property.
Return value
array
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;
}