BootstrapConfigStorageFactory::getFileStorage

public static BootstrapConfigStorageFactory::getFileStorage() Returns a File-based configuration storage implementation. If there is no active configuration directory calling this method will result in an error. Return value \Drupal\Core\Config\FileStorage Throws \Exception Deprecated in Drupal 8.0.x and will be removed before 9.0.0. Drupal core no longer creates an active directory. File core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php, line 56 Class BootstrapConfigStorag

contextual_toolbar

contextual_toolbar() Implements hook_toolbar(). File core/modules/contextual/contextual.module, line 16 Adds contextual links to perform actions related to elements on a page. Code function contextual_toolbar() { $items = []; $items['contextual'] = [ '#cache' => [ 'contexts' => [ 'user.permissions', ], ], ]; if (!\Drupal::currentUser()->hasPermission('access contextual links')) { return $items; } $items['contextual'] += array( '#type'

statistics_ranking

statistics_ranking() Implements hook_ranking(). File core/modules/statistics/statistics.module, line 162 Logs and displays content statistics for a site. Code function statistics_ranking() { if (\Drupal::config('statistics.settings')->get('count_content_views')) { return array( 'views' => array( 'title' => t('Number of views'), 'join' => array( 'type' => 'LEFT', 'table' => 'node_counter', 'alias' => 'node_counter',

DefaultExceptionSubscriber::on405

public DefaultExceptionSubscriber::on405(GetResponseForExceptionEvent $event) Handles a 405 error for HTTP. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 94 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code public function on405(GetResponseForExce

FieldItemListInterface::defaultValuesFormSubmit

public FieldItemListInterface::defaultValuesFormSubmit(array $element, array &$form, FormStateInterface $form_state) Processes the submitted default value. Invoked from \Drupal\field_ui\Form\FieldConfigEditForm to allow administrators to configure instance-level default value. Parameters array $element: The default value form element. array $form: The form where the settings form is being included in. \Drupal\Core\Form\FormStateInterface $form_state: The form state of the (entire) configur

ContactFormInterface::getRedirectPath

public ContactFormInterface::getRedirectPath() Returns the path for redirect. Return value string The redirect path. File core/modules/contact/src/ContactFormInterface.php, line 34 Class ContactFormInterface Provides an interface defining a contact form entity. Namespace Drupal\contact Code public function getRedirectPath();

ConfigMapperManager::getDiscovery

protected ConfigMapperManager::getDiscovery() Gets the plugin discovery. Return value \Drupal\Component\Plugin\Discovery\DiscoveryInterface Overrides DefaultPluginManager::getDiscovery File core/modules/config_translation/src/ConfigMapperManager.php, line 81 Class ConfigMapperManager Manages plugins for configuration translation mappers. Namespace Drupal\config_translation Code protected function getDiscovery() { if (!isset($this->discovery)) { // Look at all themes and modul

PoHeader::__toString

public PoHeader::__toString() Generate a Gettext PO formatted header string based on data set earlier. File core/lib/Drupal/Component/Gettext/PoHeader.php, line 152 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code public function __toString() { $output = ''; $isTemplate = empty($this->_languageName); $output .= '# ' . ($isTemplate ? 'LANGUAGE' : $this->_languageName) . ' translation of ' . ($isTemplate ? 'PROJECT' : $this->_projectName)

BlockForm::$storage

The block storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/block/src/BlockForm.php, line 37 Class BlockForm Provides form for block instance forms. Namespace Drupal\block Code protected $storage;

FieldConfigBase::getName

public FieldConfigBase::getName() Returns the machine name of the field. This defines how the field data is accessed from the entity. For example, if the field name is "foo", then $entity->foo returns its data. Return value string The field name. Overrides FieldDefinitionInterface::getName File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 193 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function getName() { r