MenuListBuilder::getDefaultOperations

public MenuListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). Overrides ConfigEntityListBuilder::getDefaultOperations File core/modules/menu_ui/src/MenuListBuilder.php, line 43 Class MenuListBuilder Defines a class to build a listing of menu entities. Name

CacheableDependencyInterface

Defines an interface for objects which may be used by other cached objects. All cacheability metadata exposed in this interface is bubbled to parent objects when they are cached: if a child object needs to be varied by certain cache contexts, invalidated by certain cache tags, expire after a certain maximum age, then so should any parent object. Hierarchy interface \Drupal\Core\Cache\CacheableDependencyInterface Related topics Cache API Information about the Drupal Cache API File core/lib/

RoutePreloader

Defines a class which preloads non-admin routes. On an actual site we want to avoid too many database queries so we build a list of all routes which most likely appear on the actual site, which are all HTML routes not starting with "/admin". Hierarchy class \Drupal\Core\Routing\RoutePreloader implements EventSubscriberInterface File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 20 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RoutePreloader::$ca

NodeType::$name

The human-readable name of the node type. @todo Rename to $label. Type: string File core/modules/node/src/Entity/NodeType.php, line 65 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code protected $name;

NodeListBuilder::buildHeader

public NodeListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/node/src/NodeListBuilder.php, line 69 Class NodeListBuilder Defines a class to build a listing of node entities. Namespace Drupal\node Code public function buildHeader() { // Enable language column and filter if multiple la

LanguageConfigOverrideCrudEvent

Provides a language override event for event listeners. Hierarchy class \Symfony\Component\EventDispatcher\Eventclass \Drupal\language\Config\LanguageConfigOverrideCrudEvent See also \Drupal\Core\Config\ConfigCrudEvent File core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php, line 12 Namespace Drupal\language\Config Members Name Modifiers Type Description Event::$dispatcher private property Event::$name private property Event::$propagationSto

StaticTranslation::__construct

public StaticTranslation::__construct($translations = array()) Constructs a translator from an array of translations. Parameters array $translations: Array of override strings indexed by language and context File core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php, line 26 Class StaticTranslation String translator with a static cache for translations. Namespace Drupal\Core\StringTranslation\Translator Code public function __construct($translations = array()) { $t

dropbutton-wrapper.html.twig

Default theme implementation for a dropbutton wrapper. Available variables: children: Contains the child elements of the dropbutton menu. See also template_preprocess() File core/modules/system/templates/dropbutton-wrapper.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

callback_allowed_values_function

callback_allowed_values_function(FieldStorageDefinitionInterface $definition, FieldableEntityInterface $entity = NULL, &$cacheable = TRUE) Provide the allowed values for a 'list_*' field. Callback for options_allowed_values(). 'list_*' fields can specify a callback to define the set of their allowed values using the 'allowed_values_function' storage setting. That function will be called: either in the context of a specific entity, which is then provided as the $entity parameter, or for the

ConfigBase::MAX_NAME_LENGTH

The maximum length of a configuration object name. Many filesystems (including HFS, NTFS, and ext4) have a maximum file name length of 255 characters. To ensure that no configuration objects incompatible with this limitation are created, we enforce a maximum name length of 250 characters (leaving 5 characters for the file extension). Configuration objects not stored on the filesystem should still be restricted in name length so name can be used as a cache key. See also http://wikipedia.org/wik