NestedArray::filter

public static NestedArray::filter(array $array, callable $callable = NULL) Filters a nested array recursively. Parameters array $array: The filtered nested array. callable|null $callable: The callable to apply for filtering. Return value array The filtered array. File core/lib/Drupal/Component/Utility/NestedArray.php, line 358 Class NestedArray Provides helpers to perform operations on nested arrays and array keys of variable depth. Namespace Drupal\Component\Utility Code public stat

EntityTypeInfo::entityBundleFieldInfoAlter

public EntityTypeInfo::entityBundleFieldInfoAlter(&$fields, EntityTypeInterface $entity_type, $bundle) Adds ModerationState constraint to bundles whose entities are moderated. Parameters \Drupal\Core\Field\FieldDefinitionInterface[] $fields: The array of bundle field definitions. \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. string $bundle: The bundle. See also hook_entity_bundle_field_info_alter(); File core/modules/content_moderation/src/EntityTypeInf

EditForm::buildForm

public EditForm::buildForm(array $form, FormStateInterface $form_state, $pid = NULL) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides PathFormBase::buildForm File core/modules/path/src/Form/EditForm.php, line 30 Class EditForm Provides the path edit form. Namespace Drupal\path\Form Code public function bu

toolbar_get_rendered_subtrees

toolbar_get_rendered_subtrees() Returns the rendered subtree of each top-level toolbar link. Return value array An array with the following key-value pairs: 'subtrees': the rendered subtrees 'cacheability: the associated cacheability. File core/modules/toolbar/toolbar.module, line 287 Administration toolbar for quick access to top level administration items. Code function toolbar_get_rendered_subtrees() { $data = [ '#pre_render' => ['_toolbar_do_get_rendered_subtrees'], '#ca

EditForm::buildPath

protected EditForm::buildPath($pid) Builds the path used by the form. Parameters int|null $pid: Either the unique path ID, or NULL if a new one is being created. Overrides PathFormBase::buildPath File core/modules/path/src/Form/EditForm.php, line 23 Class EditForm Provides the path edit form. Namespace Drupal\path\Form Code protected function buildPath($pid) { return $this->aliasStorage->load(array('pid' => $pid)); }

EditForm

Provides the path edit form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\path\Form\PathFormBaseclass \Drupal\path\Form\EditForm File core/modules/path/src/Form/EditForm.php, line 11 Namespace Drupal\path\Form Members Name Modifiers Type Description DependencySerializati

LanguageManager::getCurrentLanguage

public LanguageManager::getCurrentLanguage($type = LanguageInterface::TYPE_INTERFACE) Returns the current language for the given type. Parameters string $type: (optional) The language type; e.g., the interface or the content language. Defaults to \Drupal\Core\Language\LanguageInterface::TYPE_INTERFACE. Return value \Drupal\Core\Language\LanguageInterface The current language object for the given type of language. Overrides LanguageManagerInterface::getCurrentLanguage File core/lib/Drupal/Core

FormState::$redirect

Used to redirect the form on submission. This property is uncacheable. Type: \Drupal\Core\Url|\Symfony\Component\HttpFoundation\RedirectResponse|null See also self::getRedirect() File core/lib/Drupal/Core/Form/FormState.php, line 139 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected $redirect;

DatabaseQueue::garbageCollection

public DatabaseQueue::garbageCollection() Cleans queues of garbage. Overrides QueueGarbageCollectionInterface::garbageCollection File core/lib/Drupal/Core/Queue/DatabaseQueue.php, line 215 Class DatabaseQueue Default queue implementation. Namespace Drupal\Core\Queue Code public function garbageCollection() { try { // Clean up the queue for failed batches. $this->connection->delete(static::TABLE_NAME) ->condition('created', REQUEST_TIME - 864000, '<') -

ImageToolkitOperationBase::$toolkit

The image toolkit. Type: \Drupal\Core\ImageToolkit\ImageToolkitInterface File core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php, line 24 Class ImageToolkitOperationBase Provides a base class for image toolkit operation plugins. Namespace Drupal\Core\ImageToolkit Code protected $toolkit;