You are here

protected function DashboardSectionStorage::getDashboard in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/SectionStorage/DashboardSectionStorage.php \Drupal\dashboards\Plugin\SectionStorage\DashboardSectionStorage::getDashboard()

Gets the dashboard entity.

Return value

\Drupal\dashboards\Entity\Dashboard Dashboard entity.

Throws

\Drupal\Component\Plugin\Exception\PluginException

1 call to DashboardSectionStorage::getDashboard()
DashboardSectionStorage::getSectionList in src/Plugin/SectionStorage/DashboardSectionStorage.php
Gets the section list.

File

src/Plugin/SectionStorage/DashboardSectionStorage.php, line 99

Class

DashboardSectionStorage
Dashboard section storage.

Namespace

Drupal\dashboards\Plugin\SectionStorage

Code

protected function getDashboard() {
  return $this
    ->getContextValue(Dashboard::CONTEXT_TYPE);
}