Drupal::$container

The currently active container object, or NULL if not initialized yet. Type: \Symfony\Component\DependencyInjection\ContainerInterface|null File core/lib/Drupal.php, line 101 Contains \Drupal. Class Drupal Static Service Container wrapper. Code protected static $container;

Drupal

Static Service Container wrapper. Generally, code in Drupal should accept its dependencies via either constructor injection or setter method injection. However, there are cases, particularly in legacy procedural code, where that is infeasible. This class acts as a unified global accessor to arbitrary services within the system in order to ease the transition from procedural code to injected OO code. The container is built by the kernel and passed in to this class which stores it statically. The

Dropbutton::preRenderDropbutton

public static Dropbutton::preRenderDropbutton($element) Pre-render callback: Attaches the dropbutton library and required markup. File core/lib/Drupal/Core/Render/Element/Dropbutton.php, line 60 Class Dropbutton Provides a render element for a set of links rendered as a drop-down button. Namespace Drupal\Core\Render\Element Code public static function preRenderDropbutton($element) { $element['#attached']['library'][] = 'core/drupal.dropbutton'; $element['#attributes']['class'][] =

Dropbutton::getInfo

public Dropbutton::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Dropbutton.php, line 47 Class Dropbutton Provides a render element for a set of links rendered as a drop-down button. Namespace Dr

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.

Dropbutton

Provides a render element for a set of links rendered as a drop-down button. By default, this element sets #theme so that the 'links' theme hook is used for rendering, with suffixes so that themes can override this specifically without overriding all links theming. If the #subtype property is provided in your render array with value 'foo', #theme is set to links__dropbutton__foo; if not, it's links__dropbutton; both of these can be overridden by setting the #theme property in your render array.

DriverNotSpecifiedException

Exception thrown if no driver is specified for a database connection. Hierarchy class \Drupal\Core\Database\DriverNotSpecifiedException extends \RuntimeException File core/lib/Drupal/Core/Database/DriverNotSpecifiedException.php, line 8 Namespace Drupal\Core\Database Members

DraggableListBuilder::__construct

public DraggableListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage) Constructs a new EntityListBuilder object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class. Overrides EntityListBuilder::__construct File core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 47 Class DraggableListBuilder Defines a class to build a d

DraggableListBuilder::validateForm

public DraggableListBuilder::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::validateForm File core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 148 Class DraggableListBuilder Defines a class to build a draggable listing of configuration entities.

DraggableListBuilder::submitForm

public DraggableListBuilder::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 155 Class DraggableListBuilder Defines a class to build a draggable listing of configuration entities. Na