You are here

protected function ParagraphsGridConfigForm::getGrids in Paragraphs grid 8

Returns grid entities as an array.

Return value

array|\Drupal\Core\Entity\EntityInterface[] Grid entities.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 call to ParagraphsGridConfigForm::getGrids()
ParagraphsGridConfigForm::getGridTypeOptions in src/Form/ParagraphsGridConfigForm.php
Returns an option pack for select.

File

src/Form/ParagraphsGridConfigForm.php, line 83

Class

ParagraphsGridConfigForm
Class ParagraphsGridConfigForm.

Namespace

Drupal\paragraphs_grid\Form

Code

protected function getGrids() {
  if (!$this->grids) {
    $this->grids = $this->entityTypeManager
      ->getStorage('grid_entity')
      ->loadMultiple();
  }
  return $this->grids;
}