You are here

protected function SystemMenuOffCanvasForm::hasMenuOverrides in Drupal 9

Same name and namespace in other branches
  1. 8 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();
}