NullBackend::getMultiple

public NullBackend::getMultiple(&$cids, $allow_invalid = FALSE) Returns data from the persistent cache when given an array of cache IDs. Parameters array $cids: An array of cache IDs for the data to retrieve. This is passed by reference, and will have the IDs successfully returned from cache removed. bool $allow_invalid: (optional) If TRUE, cache items may be returned even if they have expired or been invalidated. Such items may sometimes be preferred, if the alternative is recalculating t

EntityTypeModerationRouteProvider::getModerationFormRoute

protected EntityTypeModerationRouteProvider::getModerationFormRoute(EntityTypeInterface $entity_type) Gets the moderation-form route. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type. Return value \Symfony\Component\Routing\Route|null The generated route, if available. File core/modules/content_moderation/src/Routing/EntityTypeModerationRouteProvider.php, line 38 Class EntityTypeModerationRouteProvider Provides the moderation configuration routes for confi

ThemeInitialization::getActiveThemeByName

public ThemeInitialization::getActiveThemeByName($theme_name) Builds an active theme object. Parameters string $theme_name: The machine name of the theme. Return value \Drupal\Core\Theme\ActiveTheme An active theme object instance for the given theme. Throws \Drupal\Core\Theme\MissingThemeDependencyException Thrown when base theme for installed theme is not installed. Overrides ThemeInitializationInterface::getActiveThemeByName File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 75

DateHelper::weekDays

public static DateHelper::weekDays($required = FALSE) Returns a translated array of week names. Parameters bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. Return value array An array of week day names File core/lib/Drupal/Core/Datetime/DateHelper.php, line 161 Class DateHelper Defines Gregorian Calendar date values. Namespace Drupal\Core\Datetime Code public static function weekDays($required = FALSE) { $weekdays = array( t

EntityForm::$operation

The name of the current operation. Subclasses may use this to implement different behaviors depending on its value. Type: string File core/lib/Drupal/Core/Entity/EntityForm.php, line 26 Class EntityForm Base class for entity forms. Namespace Drupal\Core\Entity Code protected $operation;

PoItem::setTranslation

PoItem::setTranslation($translation) Set the translation string or the array of strings if the translation has plurals. Parameters string or array $translation: File core/lib/Drupal/Component/Gettext/PoItem.php, line 129 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code function setTranslation($translation) { $this->_translation = $translation; }

NullBackend::deleteAll

public NullBackend::deleteAll() Deletes all cache items in a bin. Overrides CacheBackendInterface::deleteAll See also \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() File core/lib/Drupal/Core/Cache/NullBackend.php, line 65 Class NullBackend Defines a stub cache implementation. Namespace Drupal\Core\Cache Code public function deleteAll() { }

ViewUI::toUrl

public ViewUI::toUrl($rel = 'edit-form', array $options = []) Gets the URL object for the entity. The entity must have an id already. Content entities usually get their IDs by saving them. URI templates might be set in the links array in an annotation, for example: links = { "canonical" = "/node/{node}", "edit-form" = "/node/{node}/edit", "version-history" = "/node/{node}/revisions" } or specified in a callback function set like: uri_callback = "comment_uri", If the path is not set in

ConfigMapperManagerInterface::getMappers

public ConfigMapperManagerInterface::getMappers(RouteCollection $collection = NULL) Returns an array of all mappers. Parameters \Symfony\Component\Routing\RouteCollection $collection: The route collection used to initialize the mappers. Return value \Drupal\config_translation\ConfigMapperInterface[] An array of all mappers. File core/modules/config_translation/src/ConfigMapperManagerInterface.php, line 22 Class ConfigMapperManagerInterface Provides a common interface for config mapper ma

NodeModerationHandler::enforceRevisionsEntityFormAlter

public NodeModerationHandler::enforceRevisionsEntityFormAlter(array &$form, FormStateInterface $form_state, $form_id) Alters entity forms to enforce revision handling. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $form_id: The form id. Overrides ModerationHandler::enforceRevisionsEntityFormAlter See also hook_form_alter() File core/modules/content_moderation/src/En