FormattedDateDiff::__construct

public FormattedDateDiff::__construct($string, $max_age) Creates a new FormattedDateDiff instance. Parameters string $string: The formatted time difference. int $max_age: The maximum time in seconds that this string may be cached. File core/lib/Drupal/Core/Datetime/FormattedDateDiff.php, line 41 Class FormattedDateDiff Contains a formatted time difference. Namespace Drupal\Core\Datetime Code public function __construct($string, $max_age) { $this->string = $string; $this->max

DrupalKernelInterface::prepareLegacyRequest

public DrupalKernelInterface::prepareLegacyRequest(Request $request) Prepare the kernel for handling a request without handling the request. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. Return value $this Deprecated in Drupal 8.0.x and will be removed before 9.0.0. Only used by legacy front-controller scripts. File core/lib/Drupal/Core/DrupalKernelInterface.php, line 128 Class DrupalKernelInterface The interface for DrupalKernel, the core of Drup

ComplexDataInterface

Interface for complex data; i.e. data containing named and typed properties. The name of a property has to be a valid PHP variable name, starting with an alphabetic character. This is implemented by entities as well as by field item classes of entities. When implementing this interface which extends Traversable, make sure to list IteratorAggregate or Iterator before this interface in the implements clause. Hierarchy interface \Drupal\Core\TypedData\TypedDataInterfaceinterface \Drupal\Core\Typed

MenuLinkContentForm::buildEntity

public MenuLinkContentForm::buildEntity(array $form, FormStateInterface $form_state) Builds an updated entity object based upon the submitted form values. For building the updated entity object the form's entity is cloned and the submitted form values are copied to entity properties. The form's entity remains unchanged. Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value \Drupal

ContentTranslationManager

Provides common functionality for content translation. Hierarchy class \Drupal\content_translation\ContentTranslationManager implements ContentTranslationManagerInterface File core/modules/content_translation/src/ContentTranslationManager.php, line 11 Namespace Drupal\content_translation Members Name Modifiers Type Description ContentTranslationManager::$entityManager protected property The entity type manager. ContentTranslationManager::$updatesManager protected p

views_theme_suggestions_container_alter

views_theme_suggestions_container_alter(array &$suggestions, array $variables) Implements hook_theme_suggestions_HOOK_alter(). File core/modules/views/views.module, line 289 Primarily Drupal hooks and global API functions to manipulate views. Code function views_theme_suggestions_container_alter(array &$suggestions, array $variables) { if (!empty($variables['element']['#type']) && $variables['element']['#type'] == 'more_link' && !empty($variables['element']['#view'])

DrupalKernel::getConfigStorage

protected DrupalKernel::getConfigStorage() Returns the active configuration storage to use during building the container. Return value \Drupal\Core\Config\StorageInterface File core/lib/Drupal/Core/DrupalKernel.php, line 1328 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function getConfigStorage() { if (!isset($this->configStorage)) { // The active configuration storage may not exist yet; e.g., in the early /

Updater::__construct

public Updater::__construct($source, $root) Constructs a new updater. Parameters string $source: Directory to install from. string $root: The root directory under which the project will be copied to if it's a new project. Usually this is the app root (the directory in which the Drupal site is installed). File core/lib/Drupal/Core/Updater/Updater.php, line 38 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\Core\Updater Code public function __construct

BreakpointManagerInterface::getBreakpointsByGroup

public BreakpointManagerInterface::getBreakpointsByGroup($group) Gets breakpoints for the specified group. Parameters string $group: The breakpoint group to retrieve. Return value \Drupal\breakpoint\BreakpointInterface[] Array of breakpoint plugins keyed by machine name. File core/modules/breakpoint/src/BreakpointManagerInterface.php, line 19 Class BreakpointManagerInterface Defines an interface for breakpoint managers. Namespace Drupal\breakpoint Code public function getBreakpointsB

SwitchShortcutSet::validateForm

public SwitchShortcutSet::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 FormBase::validateForm File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 157 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code public functi