You are here

public function DashboardSectionStorage::label 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::label()

Gets the label for the object using the sections.

Return value

string The label, or NULL if there is no label defined.

Overrides SectionStorageInterface::label

File

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

Class

DashboardSectionStorage
Dashboard section storage.

Namespace

Drupal\dashboards\Plugin\SectionStorage

Code

public function label() {
  return $this
    ->getDashboard()
    ->label();
}