ExceptionHalJsonSubscriber::getHandledFormats

protected ExceptionHalJsonSubscriber::getHandledFormats() Specifies the request formats this subscriber will respond to. Return value array An indexed array of the format machine names that this subscriber will attempt to process, such as "html" or "json". Returning an empty array will apply to all formats. Overrides ExceptionJsonSubscriber::getHandledFormats See also \Symfony\Component\HttpFoundation\Request File core/modules/hal/src/EventSubscriber/ExceptionHalJsonSubscriber.php, line 15

RouteProvider::$cache

The cache backend. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Routing/RouteProvider.php, line 71 Class RouteProvider A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code protected $cache;

ContentTranslationMetadataWrapper::setOutdated

public ContentTranslationMetadataWrapper::setOutdated($outdated) Sets the translation outdated status. Parameters bool $outdated: TRUE if the translation is outdated, FALSE otherwise. Return value $this Overrides ContentTranslationMetadataWrapperInterface::setOutdated File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 65 Class ContentTranslationMetadataWrapper Base class for content translation metadata wrappers. Namespace Drupal\content_translation

SystemMenuOffCanvasForm::submitConfigurationForm

public SystemMenuOffCanvasForm::submitConfigurationForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormInterface::submitCo

OpCodeCache::invalidate

public static OpCodeCache::invalidate($pathname) Invalidates a PHP file from a possibly active opcode cache. In case the opcode cache does not support to invalidate an individual file, the entire cache will be flushed. Parameters string $pathname: The absolute pathname of the PHP file to invalidate. File core/lib/Drupal/Component/Utility/OpCodeCache.php, line 31 Class OpCodeCache Provides helpers to handle PHP opcode caches. Namespace Drupal\Component\Utility Code public static functi

DrupalKernel::initializeContainer

protected DrupalKernel::initializeContainer() Initializes the service container. Return value \Symfony\Component\DependencyInjection\ContainerInterface File core/lib/Drupal/Core/DrupalKernel.php, line 830 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function initializeContainer() { $this->containerNeedsDumping = FALSE; $session_started = FALSE; if (isset($this->container)) { // Save the id of the currently

ResourceResponseTrait::getResponseData

public ResourceResponseTrait::getResponseData() Returns response data that should be serialized. Return value mixed Response data that should be serialized. Overrides ResourceResponseInterface::getResponseData File core/modules/rest/src/ResourceResponseTrait.php, line 21 Class ResourceResponseTrait Namespace Drupal\rest Code public function getResponseData() { return $this->responseData; }

NodeForm::create

public static NodeForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service contain

DiffFormatter::format

public DiffFormatter::format(Diff $diff) Format a diff. Parameters \Drupal\Component\Diff\Diff $diff: A Diff object. Return value string The formatted output. File core/lib/Drupal/Component/Diff/DiffFormatter.php, line 48 Class DiffFormatter A class to format Diffs Namespace Drupal\Component\Diff Code public function format(Diff $diff) { $xi = $yi = 1; $block = FALSE; $context = array(); $nlead = $this->leading_context_lines; $ntrail = $this->trailing_context_lines;

EntityTypeModerationRouteProvider::getRoutes

public EntityTypeModerationRouteProvider::getRoutes(EntityTypeInterface $entity_type) Provides routes for entities. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type Return value \Symfony\Component\Routing\RouteCollection|\Symfony\Component\Routing\Route[] Returns a route collection or an array of routes keyed by name, like route_callbacks inside 'routing.yml' files. Overrides EntityRouteProviderInterface::getRoutes File core/modules/content_moderation/src/Routi