BlockContent.php in Drupal 10        
                          
                  
                        
  
  
  
  
File
  core/modules/block_content/src/Plugin/views/wizard/BlockContent.php
  
    View source  
  <?php
namespace Drupal\block_content\Plugin\views\wizard;
use Drupal\views\Plugin\views\wizard\WizardPluginBase;
class BlockContent extends WizardPluginBase {
  
  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;
  }
}
 
Classes
        
  
  
      
      
         
      
                  
            Name            | 
                  
            Description           | 
              
    
    
          
                  | 
            BlockContent           | 
                  
            Used for creating 'block_content' views with the wizard.           |