You are here

public function LayoutBuilderStyle::getBlockRestrictions in Layout Builder Styles 8

Returns list of block plugin IDs to restrict this style to.

Return value

array The block plugin IDs to restrict this style to.

Overrides LayoutBuilderStyleInterface::getBlockRestrictions

File

src/Entity/LayoutBuilderStyle.php, line 121

Class

LayoutBuilderStyle
Defines the LayoutBuilderStyle config entity.

Namespace

Drupal\layout_builder_styles\Entity

Code

public function getBlockRestrictions() {
  return isset($this->block_restrictions) ? $this->block_restrictions : [];
}