ThemeManagerInterface::alterForTheme

public ThemeManagerInterface::alterForTheme(ActiveTheme $theme, $type, &$data, &$context1 = NULL, &$context2 = NULL) Provides an alter hook for a specific theme. Similar to ::alter, it also invokes the alter hooks for the base themes. Parameters \Drupal\Core\Theme\ActiveTheme $theme: A manually specified theme. string|array $type: A string describing the type of the alterable $data. mixed $data: The variable that will be passed to $theme_TYPE_alter() implementations mixed $context1

DateTimePlus::createFromArray

public static DateTimePlus::createFromArray(array $date_parts, $timezone = NULL, $settings = array()) Creates a date object from an array of date parts. Converts the input value into an ISO date, forcing a full ISO date even if some values are missing. Parameters array $date_parts: An array of date parts, like ('year' => 2014, 'month' => 4). mixed $timezone: (optional) \DateTimeZone object, time zone string or NULL. NULL uses the default system time zone. Defaults to NULL. array $setting

Renderer::executeInRenderContext

public Renderer::executeInRenderContext(RenderContext $context, callable $callable) Executes a callable within a render context. Only for very advanced use cases. Prefer using ::renderRoot() and ::renderPlain() instead. All rendering must happen within a render context. Within a render context, all bubbleable metadata is bubbled and hence tracked. Outside of a render context, it would be lost. This could lead to missing assets, incorrect cache variations (and thus security issues), insufficient

toolbar.html.twig

Default theme implementation for the administrative toolbar. Available variables: attributes: HTML attributes for the wrapper. toolbar_attributes: HTML attributes to apply to the toolbar. toolbar_heading: The heading or label for the toolbar. tabs: List of tabs for the toolbar. attributes: HTML attributes for the tab container. link: Link or button for the menu tab. trays: Toolbar tray list, each associated with a tab. Each tray in trays contains: attributes: HTML attributes to apply t

EntityType::$entity_keys

An array of entity keys. Type: array File core/lib/Drupal/Core/Entity/EntityType.php, line 45 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code protected $entity_keys = array();

views_ui_ajax_update_form

views_ui_ajax_update_form($form, FormStateInterface $form_state) Updates a part of the add view form via AJAX. Return value The part of the form that has changed. File core/modules/views_ui/admin.inc, line 188 Provides the Views' administrative interface. Code function views_ui_ajax_update_form($form, FormStateInterface $form_state) { // The region that needs to be updated was stored in a property of the // triggering element by views_ui_add_ajax_trigger(), so all we have to do is // r

ConfigInstaller::getEnabledExtensions

protected ConfigInstaller::getEnabledExtensions() Gets the list of enabled extensions including both modules and themes. Return value array A list of enabled extensions which includes both modules and themes. File core/lib/Drupal/Core/Config/ConfigInstaller.php, line 564 Class ConfigInstaller Namespace Drupal\Core\Config Code protected function getEnabledExtensions() { // Read enabled extensions directly from configuration to avoid circular // dependencies on ModuleHandler and Th

user_format_name

user_format_name(AccountInterface $account) Format a username. @todo Remove usage in https://www.drupal.org/node/2311219. Parameters \Drupal\Core\Session\AccountInterface $account: The account object for the user whose name is to be formatted. Return value string An unsanitized string with the username to display. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\Session\AccountInterface::getDisplayName(). File core/modules/user/user.module, line 425 Ena

DefaultTableMapping::$allColumns

A list of all database columns per table. This corresponds to the return value of TableMappingInterface::getAllColumns() except that this variable is additionally keyed by table name. This data is derived from static::$storageDefinitions, static::$fieldNames, and static::$extraColumns, but is stored separately to avoid repeated processing. Type: array[] File core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 76 Class DefaultTableMapping Defines a default table mapping class. N

COMMENT_ANONYMOUS_MAY_CONTACT

Anonymous posters may leave their contact information. File core/modules/comment/comment.module, line 37 Enables users to comment on published content. Code const COMMENT_ANONYMOUS_MAY_CONTACT = 1;