MenuLinkDefault::$overrideAllowed

The list of definition values where an override is allowed. The keys are definition names. The values are ignored. Type: array Overrides MenuLinkBase::$overrideAllowed File core/lib/Drupal/Core/Menu/MenuLinkDefault.php, line 16 Class MenuLinkDefault Provides a default implementation for menu link plugins. Namespace Drupal\Core\Menu Code protected $overrideAllowed = array( 'menu_name' => 1, 'parent' => 1, 'weight' => 1, 'expanded' => 1, 'enabled' => 1, );

MenuLinkDefault

Provides a default implementation for menu link plugins. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Menu\MenuLinkBase implements MenuLinkInterfaceclass \Drupal\Core\Menu\MenuLinkDefault implements ContainerFactoryPluginInterface File core/lib/Drupal/Core/Menu/MenuLinkDefault.php, line 11 Namespace D

MenuLinkContentStorageSchema::getSharedTableFieldSchema

protected MenuLinkContentStorageSchema::getSharedTableFieldSchema(FieldStorageDefinitionInterface $storage_definition, $table_name, array $column_mapping) Gets the schema for a single field definition. Entity types may override this method in order to optimize the generated schema for given field. While all optimizations that apply to a single field have to be added here, all cross-field optimizations should be via SqlContentEntityStorageSchema::getEntitySchema() instead; e.g., an index spannin

MenuLinkContentStorageSchema

Defines the menu_link_content schema handler. Hierarchy class \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema implements DynamicallyFieldableEntityStorageSchemaInterface uses DependencySerializationTraitclass \Drupal\menu_link_content\MenuLinkContentStorageSchema File core/modules/menu_link_content/src/MenuLinkContentStorageSchema.php, line 11 Namespace Drupal\menu_link_content Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protecte

MenuLinkContentInterface::setRequiresRediscovery

public MenuLinkContentInterface::setRequiresRediscovery($rediscovery) Flags a link as requiring rediscovery. Parameters bool $rediscovery: Whether or not the link requires rediscovery. Return value $this The instance on which the method was called. See also \Drupal\menu_link_content\MenuLinkContentInterface::requiresRediscovery() File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 129 Class MenuLinkContentInterface Defines an interface for custom menu links. Nam

MenuLinkContentInterface::requiresRediscovery

public MenuLinkContentInterface::requiresRediscovery() Returns whether the menu link requires rediscovery. If a menu-link points to a user-supplied path such as /blog then the route this resolves to needs to be rediscovered as the module or route providing a given path might change over time. For example: at the time a menu-link is created, the /blog path might be provided by a route in Views module, but later this path may be served by the Panels module. Flagging a link as requiring rediscover

MenuLinkContentInterface::isExpanded

public MenuLinkContentInterface::isExpanded() Returns whether the menu link is marked as always expanded. Return value bool TRUE for expanded, FALSE otherwise. File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 72 Class MenuLinkContentInterface Defines an interface for custom menu links. Namespace Drupal\menu_link_content Code public function isExpanded();

MenuLinkContentInterface::isEnabled

public MenuLinkContentInterface::isEnabled() Returns whether the menu link is marked as enabled. Return value bool TRUE if is enabled, otherwise FALSE. File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 64 Class MenuLinkContentInterface Defines an interface for custom menu links. Namespace Drupal\menu_link_content Code public function isEnabled();

MenuLinkContentInterface::getWeight

public MenuLinkContentInterface::getWeight() Returns the weight of the menu link content entity. Return value int A weight for use when ordering links. File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 88 Class MenuLinkContentInterface Defines an interface for custom menu links. Namespace Drupal\menu_link_content Code public function getWeight();

MenuLinkContentInterface::getUrlObject

public MenuLinkContentInterface::getUrlObject() Gets the url object pointing to the URL of the menu link content entity. Return value \Drupal\Core\Url A Url object instance. File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 32 Class MenuLinkContentInterface Defines an interface for custom menu links. Namespace Drupal\menu_link_content Code public function getUrlObject();