function SystemMenuOffCanvasForm::hasMenuOverrides

Same name in other branches
  1. 9 core/modules/system/src/Form/SystemMenuOffCanvasForm.php \Drupal\system\Form\SystemMenuOffCanvasForm::hasMenuOverrides()
  2. 10 core/modules/system/src/Form/SystemMenuOffCanvasForm.php \Drupal\system\Form\SystemMenuOffCanvasForm::hasMenuOverrides()
  3. 11.x core/modules/system/src/Form/SystemMenuOffCanvasForm.php \Drupal\system\Form\SystemMenuOffCanvasForm::hasMenuOverrides()

Determines if the menu has configuration overrides.

Return value

bool TRUE if the menu has configuration overrides, otherwise FALSE.

3 calls to SystemMenuOffCanvasForm::hasMenuOverrides()
SystemMenuOffCanvasForm::buildConfigurationForm in core/modules/system/src/Form/SystemMenuOffCanvasForm.php
Form constructor.
SystemMenuOffCanvasForm::submitConfigurationForm in core/modules/system/src/Form/SystemMenuOffCanvasForm.php
Form submission handler.
SystemMenuOffCanvasForm::validateConfigurationForm in core/modules/system/src/Form/SystemMenuOffCanvasForm.php
Form validation handler.

File

core/modules/system/src/Form/SystemMenuOffCanvasForm.php, line 174

Class

SystemMenuOffCanvasForm
The setting_tray form handler for the SystemMenuBlock.

Namespace

Drupal\system\Form

Code

protected function hasMenuOverrides() {
    // @todo Replace the following with $this->menu->hasOverrides() in https://www.drupal.org/project/drupal/issues/2910353
    //   and remove this function.
    return $this->configFactory
        ->get($this->menu
        ->getEntityType()
        ->getConfigPrefix() . '.' . $this->menu
        ->id())
        ->hasOverrides();
}

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