BlockContentForm::__construct

public BlockContentForm::__construct(EntityManagerInterface $entity_manager, EntityStorageInterface $block_content_storage, EntityStorageInterface $block_content_type_storage, LanguageManagerInterface $language_manager) Constructs a BlockContentForm object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Entity\EntityStorageInterface $block_content_storage: The custom block storage. \Drupal\Core\Entity\EntityStorageInterface $block_conten

ChainedFastBackend::garbageCollection

public ChainedFastBackend::garbageCollection() Performs garbage collection on a cache bin. The backend may choose to delete expired or invalidated items. Overrides CacheBackendInterface::garbageCollection File core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 261 Class ChainedFastBackend Defines a backend with a fast and a consistent backend chain. Namespace Drupal\Core\Cache Code public function garbageCollection() { $this->consistentBackend->garbageCollection(); $this

PoReaderInterface::readItem

public PoReaderInterface::readItem() Reads and returns a PoItem (source/translation pair). Return value \Drupal\Component\Gettext\PoItem Wrapper for item data instance. File core/lib/Drupal/Component/Gettext/PoReaderInterface.php, line 16 Class PoReaderInterface Shared interface definition for all Gettext PO Readers. Namespace Drupal\Component\Gettext Code public function readItem();

MenuLinkManager::getDiscovery

protected MenuLinkManager::getDiscovery() Gets the plugin discovery. Return value \Drupal\Component\Plugin\Discovery\DiscoveryInterface File core/lib/Drupal/Core/Menu/MenuLinkManager.php, line 139 Class MenuLinkManager Manages discovery, instantiation, and tree building of menu link plugins. Namespace Drupal\Core\Menu Code protected function getDiscovery() { if (!isset($this->discovery)) { $yaml_discovery = new YamlDiscovery('links.menu', $this->moduleHandler->getModule

EntityDisplayFormBase::getExtraFieldVisibilityOptions

protected EntityDisplayFormBase::getExtraFieldVisibilityOptions() Returns an array of visibility options for extra fields. Return value array An array of visibility options. File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 826 Class EntityDisplayFormBase Base class for EntityDisplay edit forms. Namespace Drupal\field_ui\Form Code protected function getExtraFieldVisibilityOptions() { return array( 'visible' => $this->t('Visible'), 'hidden' => '- '

Url::createFromRequest

public static Url::createFromRequest(Request $request) Returns the Url object matching a request. SECURITY NOTE: The request path is not checked to be valid and accessible by the current user to allow storing and reusing Url objects by different users. The 'path.validator' service getUrlIfValid() method should be used instead of this one if validation and access check is desired. Otherwise, 'access_manager' service checkNamedRoute() method should be used on the router name and parameters stored

datetime_help

datetime_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/datetime/datetime.module, line 28 Field hooks to implement a simple datetime field. Code function datetime_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.datetime': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Datetime module provides a Date field that stores dates and

SearchPageListBuilder::searchAdminReindexSubmit

public SearchPageListBuilder::searchAdminReindexSubmit(array &$form, FormStateInterface $form_state) Form submission handler for the reindex button on the search admin settings form. File core/modules/search/src/SearchPageListBuilder.php, line 352 Class SearchPageListBuilder Defines a class to build a listing of search page entities. Namespace Drupal\search Code public function searchAdminReindexSubmit(array &$form, FormStateInterface $form_state) { // Send the user to the co

PathRootsSubscriber

Provides all available first bits of all route paths. Hierarchy class \Drupal\Core\EventSubscriber\PathRootsSubscriber implements EventSubscriberInterface File core/lib/Drupal/Core/EventSubscriber/PathRootsSubscriber.php, line 13 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description PathRootsSubscriber::$pathRoots protected property Stores the path roots available in the router. PathRootsSubscriber::$state protected property The state key

PoDatabaseReader::readItem

public PoDatabaseReader::readItem() Reads and returns a PoItem (source/translation pair). Return value \Drupal\Component\Gettext\PoItem Wrapper for item data instance. Overrides PoReaderInterface::readItem File core/modules/locale/src/PoDatabaseReader.php, line 162 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function readItem() { if ($string = $this->readString()) { $values = (array) $string; $po_it