FinishResponseSubscriber::$responsePolicy

A policy rule determining the cacheability of the response. Type: \Drupal\Core\PageCache\ResponsePolicyInterface File core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php, line 50 Class FinishResponseSubscriber Response subscriber to handle finished responses. Namespace Drupal\Core\EventSubscriber Code protected $responsePolicy;

Insert::__construct

public Insert::__construct($connection, $table, array $options = array()) Constructs an Insert object. Parameters \Drupal\Core\Database\Connection $connection: A Connection object. string $table: Name of the table to associate with this query. array $options: Array of database options. Overrides Query::__construct File core/lib/Drupal/Core/Database/Query/Insert.php, line 33 Class Insert General class for an abstracted INSERT query. Namespace Drupal\Core\Database\Query Code public func

CommentController::redirectNode

public CommentController::redirectNode(EntityInterface $node) Redirects legacy node links to the new path. Parameters \Drupal\Core\Entity\EntityInterface $node: The node object identified by the legacy URL. Return value \Symfony\Component\HttpFoundation\RedirectResponse Redirects user to new url. Throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException File core/modules/comment/src/Controller/CommentController.php, line 172 Class CommentController Controller for the comment

FileStorage::delete

public FileStorage::delete($name) Deletes PHP code from storage. Parameters string $name: The virtual file name. Can be a relative path. Return value bool TRUE if the delete succeeded, FALSE if it failed. Overrides PhpStorageInterface::delete File core/lib/Drupal/Component/PhpStorage/FileStorage.php, line 182 Class FileStorage Stores the code as regular PHP files. Namespace Drupal\Component\PhpStorage Code public function delete($name) { $path = $this->getFullPath($name); if (

BookManager::$books

Books Array. Type: array File core/modules/book/src/BookManager.php, line 47 Class BookManager Defines a book manager. Namespace Drupal\book Code protected $books;

statistics.tokens.inc

Builds placeholder replacement tokens for node visitor statistics. File core/modules/statistics/statistics.tokens.inc Functions Name Description statistics_tokens Implements hook_tokens(). statistics_token_info Implements hook_token_info().

FormStateDecoratorBase::getGroups

public &FormStateDecoratorBase::getGroups() Returns references to details elements to render them within vertical tabs. Return value array Overrides FormStateInterface::getGroups File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 114 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form Code public function &getGroups() { return $this->decoratedFormState->getGroups(); }

drupal_dirname

drupal_dirname($uri) Gets the name of the directory from a given path. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::dirname(). Related topics File interface Common file handling functions. File core/includes/file.inc, line 1137 API for handling file uploads and server file management. Code function drupal_dirname($uri) { return \Drupal::service('file_system')->dirname($uri); }

CurrentPathStack::__construct

public CurrentPathStack::__construct(RequestStack $request_stack) Constructs a new CurrentPathStack instance. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. File core/lib/Drupal/Core/Path/CurrentPathStack.php, line 35 Class CurrentPathStack Represents the current path for the current request. Namespace Drupal\Core\Path Code public function __construct(RequestStack $request_stack) { $this->requestStack = $request_stack; $this->pat

EntityDeleteFormTrait::submitForm

public EntityDeleteFormTrait::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden un