You are here

public function LayoutOption::getLayout in Bootstrap Layout Builder 2.x

Same name and namespace in other branches
  1. 1.x src/Entity/LayoutOption.php \Drupal\bootstrap_layout_builder\Entity\LayoutOption::getLayout()

Returns parent layout entity.

Return value

object The parent layout entity.

Overrides LayoutOptionInterface::getLayout

File

src/Entity/LayoutOption.php, line 192

Class

LayoutOption
Defines the layout option entity class.

Namespace

Drupal\bootstrap_layout_builder\Entity

Code

public function getLayout() {
  $layout = $this
    ->entityTypeManager()
    ->getStorage('blb_layout')
    ->load($this->layout_id);
  return $layout;
}