function LayoutSectionStorageParamConverter::applies

Same name in other branches
  1. 9 core/modules/layout_builder/src/Routing/LayoutSectionStorageParamConverter.php \Drupal\layout_builder\Routing\LayoutSectionStorageParamConverter::applies()
  2. 10 core/modules/layout_builder/src/Routing/LayoutSectionStorageParamConverter.php \Drupal\layout_builder\Routing\LayoutSectionStorageParamConverter::applies()

Overrides ParamConverterInterface::applies

File

core/modules/layout_builder/src/Routing/LayoutSectionStorageParamConverter.php, line 53

Class

LayoutSectionStorageParamConverter
Loads the section storage from the routing defaults.

Namespace

Drupal\layout_builder\Routing

Code

public function applies($definition, $name, Route $route) {
    return !empty($definition['layout_builder_section_storage']) || !empty($definition['layout_builder_tempstore']);
}

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