PageCache::getCacheId

protected PageCache::getCacheId(Request $request) Gets the page cache ID for this request. Parameters \Symfony\Component\HttpFoundation\Request $request: A request object. Return value string The cache ID for this request. File core/modules/page_cache/src/StackMiddleware/PageCache.php, line 342 Class PageCache Executes the page caching before the main kernel takes over the request. Namespace Drupal\page_cache\StackMiddleware Code protected function getCacheId(Request $request) { $c

MenuListBuilder::getDefaultOperations

public MenuListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). Overrides ConfigEntityListBuilder::getDefaultOperations File core/modules/menu_ui/src/MenuListBuilder.php, line 43 Class MenuListBuilder Defines a class to build a listing of menu entities. Name

EntityViewDisplayEditForm::getDisplayModes

protected EntityViewDisplayEditForm::getDisplayModes() Returns the form or view modes used by this form. Return value array An array of form or view mode info. Overrides EntityDisplayFormBase::getDisplayModes File core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php, line 100 Class EntityViewDisplayEditForm Edit form for the EntityViewDisplay entity type. Namespace Drupal\field_ui\Form Code protected function getDisplayModes() { return $this->entityManager->getViewMode

SiteConfigureForm::getEditableConfigNames

protected SiteConfigureForm::getEditableConfigNames() Gets the configuration names that will be editable. Return value array An array of configuration object names that are editable if called in conjunction with the trait's config() method. Overrides ConfigFormBaseTrait::getEditableConfigNames File core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php, line 109 Class SiteConfigureForm Provides the site configuration form. Namespace Drupal\Core\Installer\Form Code protected functio

ContextDefinition::$definition

The ContextDefinitionInterface object. Type: \Drupal\Core\Plugin\Context\ContextDefinitionInterface Overrides Plugin::$definition File core/lib/Drupal/Core/Annotation/ContextDefinition.php, line 81 Class ContextDefinition Defines a context definition annotation object. Namespace Drupal\Core\Annotation Code protected $definition;

TextFormat::getSourceElement

public TextFormat::getSourceElement(LanguageInterface $source_language, $source_config) Returns the source element for a given configuration definition. This can be either a render array that actually outputs the source values directly or a read-only form element with the source values depending on what is considered to provide a more intuitive user interface for the translator. Parameters \Drupal\Core\Language\LanguageInterface $source_language: Thee source language of the configuration objec

LoggerChannel::sortLoggers

protected LoggerChannel::sortLoggers() Sorts loggers according to priority. Return value array An array of sorted loggers by priority. File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 176 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code protected function sortLoggers() { $sorted = array(); krsort($this->loggers); foreach ($this->loggers as $loggers) { $sorted = array_merge($sorted, $loggers);

EntityFieldManagerInterface::getFieldMap

public EntityFieldManagerInterface::getFieldMap() Gets a lightweight map of fields across bundles. Return value array An array keyed by entity type. Each value is an array which keys are field names and value is an array with two entries: type: The field type. bundles: An associative array of the bundles in which the field appears, where the keys and values are both the bundle's machine name. File core/lib/Drupal/Core/Entity/EntityFieldManagerInterface.php, line 74 Class EntityFieldMan

DateFormatEditForm::actions

protected DateFormatEditForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/system/src/Form/DateFormatEditForm.php, line 28 Class DateFormatEditForm Provides a form for editing a date format. Namespace Drupal\system\Form Code protected function actions(array $form, FormStateIn

ImageToolkitManager::getDefaultToolkitId

public ImageToolkitManager::getDefaultToolkitId() Gets the default image toolkit ID. Return value string|bool ID of the default toolkit, or FALSE on error. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php, line 53 Class ImageToolkitManager Manages image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code public function getDefaultToolkitId() { $toolkit_id = $this->configFactory->get('system.image')->get('toolkit'); $toolkits = $this->getAvailableTool