StaticMenuLinkOverrides::loadMultipleOverrides

public StaticMenuLinkOverrides::loadMultipleOverrides(array $ids) Loads overrides to multiple definitions of a static (YAML-defined) link. Parameters array $ids: Array of menu link plugin IDs. Return value array One or override keys by plugin ID. Overrides StaticMenuLinkOverridesInterface::loadMultipleOverrides See also \Drupal\Core\Menu\StaticMenuLinkOverridesInterface File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 108 Class StaticMenuLinkOverrides Defines an implemen

StaticMenuLinkOverrides::getCacheTags

public StaticMenuLinkOverrides::getCacheTags() The unique cache tag associated with this menu link override. Return value string[] An array of cache tags. Overrides StaticMenuLinkOverridesInterface::getCacheTags File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 158 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code public function getCacheTags() { return $this->getConfig()->getCa

StaticMenuLinkOverrides::$configName

The config name used to store the overrides. This configuration can not be overridden by configuration overrides because menu links and these overrides are cached in a way that is not override aware. Type: string File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 21 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code protected $configName = 'core.menu.static_menu_link_overrides';

StaticMenuLinkOverrides::deleteOverride

public StaticMenuLinkOverrides::deleteOverride($id) Deletes any overrides to the definition of a static (YAML-defined) link. Parameters string $id: A menu link plugin ID. Overrides StaticMenuLinkOverridesInterface::deleteOverride File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 101 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code public function deleteOverride($id) { return $this-&g

StaticMenuLinkOverrides::$configFactory

The config factory object. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 35 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code protected $configFactory;

StaticMenuLinkOverrides::$config

The menu link overrides config object. Type: \Drupal\Core\Config\Config File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 28 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code protected $config;

StaticMenuLinkOverrides

Defines an implementation of the menu link override using a config file. Hierarchy class \Drupal\Core\Menu\StaticMenuLinkOverrides implements StaticMenuLinkOverridesInterface File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 10 Namespace Drupal\Core\Menu Members Name Modifiers Type Description StaticMenuLinkOverrides::$config protected property The menu link overrides config object. StaticMenuLinkOverrides::$configFactory protected property The con

StaticMenuLinkOverrides::deleteMultipleOverrides

public StaticMenuLinkOverrides::deleteMultipleOverrides(array $ids) Deletes multiple overrides to definitions of static (YAML-defined) links. Parameters array $ids: Array of menu link plugin IDs. Overrides StaticMenuLinkOverridesInterface::deleteMultipleOverrides File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 82 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code public function delete

StateTransitionValidationInterface::getValidTransitions

public StateTransitionValidationInterface::getValidTransitions(ContentEntityInterface $entity, AccountInterface $user) Gets a list of transitions that are legal for this user on this entity. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity to be transitioned. \Drupal\Core\Session\AccountInterface $user: The account that wants to perform a transition. Return value \Drupal\content_moderation\Entity\ModerationStateTransition[] The list of transitions that are legal for t

StateTransitionValidationInterface::getValidTransitionTargets

public StateTransitionValidationInterface::getValidTransitionTargets(ContentEntityInterface $entity, AccountInterface $user) Gets a list of states a user may transition an entity to. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity to be transitioned. \Drupal\Core\Session\AccountInterface $user: The account that wants to perform a transition. Return value \Drupal\content_moderation\Entity\ModerationState[] Returns an array of States to which the specified user may tra