function NavigationSectionStorage::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

core/modules/navigation/src/Plugin/SectionStorage/NavigationSectionStorage.php, line 100

Class

NavigationSectionStorage
Provides navigation section storage.

Namespace

Drupal\navigation\Plugin\SectionStorage

Code

public function label() : string {
  return 'Navigation layout';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.