BlockListBuilder::getEntityIds

protected BlockListBuilder::getEntityIds() Loads entity IDs using a pager sorted by the entity id. Return value array An array of entity IDs. Overrides EntityListBuilder::getEntityIds File core/modules/block/src/BlockListBuilder.php, line 327 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected function getEntityIds() { return $this->getStorage()->getQuery() ->condition('theme', $this->getThemeName())

BlockListBuilder::getDefaultOperations

public BlockListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). Overrides ConfigEntityListBuilder::getDefaultOperations File core/modules/block/src/BlockListBuilder.php, line 337 Class BlockListBuilder Defines a class to build a listing of block entities. N

BlockListBuilder::createInstance

public static BlockListBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Dependen

BlockListBuilder::buildForm

public BlockListBuilder::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/block/src/BlockListBuilder.php, line 119 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\

BlockListBuilder::buildBlocksForm

protected BlockListBuilder::buildBlocksForm() Builds the main "Blocks" portion of the form. Return value array File core/modules/block/src/BlockListBuilder.php, line 146 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected function buildBlocksForm() { // Build blocks first for each region. $blocks = []; $entities = $this->load(); /** @var \Drupal\block\BlockInterface[] $entities */ foreach ($entities as $entity

BlockListBuilder::$themeManager

The theme manager. Type: \Drupal\Core\Theme\ThemeManagerInterface File core/modules/block/src/BlockListBuilder.php, line 45 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected $themeManager;

BlockListBuilder::$theme

The theme containing the blocks. Type: string File core/modules/block/src/BlockListBuilder.php, line 31 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected $theme;

BlockListBuilder::$request

The current request. Type: \Symfony\Component\HttpFoundation\Request File core/modules/block/src/BlockListBuilder.php, line 38 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected $request;

BlockListBuilder::$limit

The number of entities to list per page, or FALSE to list all entities. For example, set this to FALSE if the list uses client-side filters that require all entities to be listed (like the views overview). Type: int|false Overrides EntityListBuilder::$limit File core/modules/block/src/BlockListBuilder.php, line 57 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected $limit = FALSE;

BlockListBuilder::$formBuilder

The form builder. Type: \Drupal\Core\Form\FormBuilderInterface File core/modules/block/src/BlockListBuilder.php, line 52 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected $formBuilder;