drupal_theme_rebuild

drupal_theme_rebuild() Forces the system to rebuild the theme registry. This function should be called when modules are added to the system, or when a dynamic system needs to add more theme hooks. File core/includes/theme.inc, line 120 The theme system, which controls the output of Drupal. Code function drupal_theme_rebuild() { \Drupal::service('theme.registry')->reset(); }

ShortcutSetAccessControlHandler

Defines the access control handler for the shortcut set entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\shortcut\ShortcutSetAccessControlHandler See also \Drupal\shortcut\Entity\ShortcutSet File core/modules/shortcut/src/ShortcutSetAccessControlHandler.php, line 15 Namespace Drupal\shortcut Member

Merge::keys

public Merge::keys(array $fields, array $values = array()) Sets the key fields to be used as conditions for this query. This method should only be called once. It may be called either with a single associative array or two indexed arrays. If called with an associative array, the keys are taken to be the fields and the values are taken to be the corresponding values to set. If called with two arrays, the first array is taken as the fields and the second array is taken as the corresponding values

BookManager::checkNodeIsRemovable

public BookManager::checkNodeIsRemovable(NodeInterface $node) Determines if a node can be removed from the book. A node can be removed from a book if it is actually in a book and it either is not a top-level page or is a top-level page with no children. Parameters \Drupal\node\NodeInterface $node: The node to remove from the outline. Return value bool TRUE if a node can be removed from the book, FALSE otherwise. Overrides BookManagerInterface::checkNodeIsRemovable File core/modules/book/src/B

Textfield

Provides a one-line text field form element. Properties: #maxlength: Maximum number of characters of input allowed. #size: The size of the input element in characters. #autocomplete_route_name: A route to be used as callback URL by the autocomplete JavaScript library. #autocomplete_route_parameters: An array of parameters to be used in conjunction with the route name. Usage example: $form['title'] = array( '#type' => 'textfield', '#title' => $this->t('Subject'), '#default_v

ForumListingBreadcrumbBuilder::build

public ForumListingBreadcrumbBuilder::build(RouteMatchInterface $route_match) Builds the breadcrumb. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value \Drupal\Core\Breadcrumb\Breadcrumb A breadcrumb. Overrides ForumBreadcrumbBuilderBase::build File core/modules/forum/src/Breadcrumb/ForumListingBreadcrumbBuilder.php, line 23 Class ForumListingBreadcrumbBuilder Provides a breadcrumb builder base class for forum listing pages. Namespac

ForumListingBreadcrumbBuilder

Provides a breadcrumb builder base class for forum listing pages. Hierarchy class \Drupal\forum\Breadcrumb\ForumBreadcrumbBuilderBase implements BreadcrumbBuilderInterface uses StringTranslationTraitclass \Drupal\forum\Breadcrumb\ForumListingBreadcrumbBuilder File core/modules/forum/src/Breadcrumb/ForumListingBreadcrumbBuilder.php, line 11 Namespace Drupal\forum\Breadcrumb Members Name Modifiers Type Description ForumBreadcrumbBuilderBase::$config protected property Con

Term::baseFieldDefinitions

public static Term::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions for fields that sho

DATETIME_DATETIME_STORAGE_FORMAT

Defines the format that date and time should be stored in. File core/modules/datetime/datetime.module, line 18 Field hooks to implement a simple datetime field. Code const DATETIME_DATETIME_STORAGE_FORMAT = 'Y-m-d\TH:i:s';

HeadersCacheContext

Defines the HeadersCacheContext service, for "per header" caching. Cache context ID: 'headers' (to vary by all headers). Calculated cache context ID: 'headers:%name', e.g. 'headers:X-Something' (to vary by the 'X-Something' header). Hierarchy class \Drupal\Core\Cache\Context\RequestStackCacheContextBaseclass \Drupal\Core\Cache\Context\HeadersCacheContext implements CalculatedCacheContextInterface File core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php, line 14 Namespace Drupal\C