DrupalKernel::setSitePath

public DrupalKernel::setSitePath($path) Set the current site path. Parameters string $path: The current site path. Throws \LogicException In case the kernel is already booted. Overrides DrupalKernelInterface::setSitePath File core/lib/Drupal/Core/DrupalKernel.php, line 408 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function setSitePath($path) { if ($this->booted) { throw new \LogicException('Site path cannot be c

DeleteForm::logDeletionMessage

public DeleteForm::logDeletionMessage() Overrides ContentEntityDeleteForm::logDeletionMessage File core/modules/comment/src/Form/DeleteForm.php, line 44 Class DeleteForm Provides the comment delete confirmation form. Namespace Drupal\comment\Form Code public function logDeletionMessage() { $this->logger('content')->notice('Deleted comment @cid and its replies.', array('@cid' => $this->entity->id())); }

Comment

Defines the comment entity class. Plugin annotation @ContentEntityType( id = "comment", label = @Translation("Comment"), bundle_label = @Translation("Comment type"), handlers = { "storage" = "Drupal\comment\CommentStorage", "storage_schema" = "Drupal\comment\CommentStorageSchema", "access" = "Drupal\comment\CommentAccessControlHandler", "list_builder" = "Drupal\Core\Entity\EntityListBuilder", "view_builder" = "Drupal\comment\CommentViewBuilder", "views_data" = "D

StorageComparer::$configManager

The configuration manager. Type: \Drupal\Core\Config\ConfigManagerInterface File core/lib/Drupal/Core/Config/StorageComparer.php, line 48 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code protected $configManager;

ApcuBackend::deleteAll

public ApcuBackend::deleteAll() Deletes all cache items in a bin. Overrides CacheBackendInterface::deleteAll See also \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 206 Class ApcuBackend Stores cache items in the Alternative PHP Cache User Cache (APCu). Namespace Drupal\Core\Cache Code public function deleteAll()

CommentInterface::getSubject

public CommentInterface::getSubject() Returns the subject of the comment. Return value string The subject of the comment. File core/modules/comment/src/CommentInterface.php, line 89 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getSubject();

AttachmentsInterface::setAttachments

public AttachmentsInterface::setAttachments(array $attachments) Sets attachments. Parameters array $attachments: The attachments to set. Return value $this File core/lib/Drupal/Core/Render/AttachmentsInterface.php, line 42 Class AttachmentsInterface Defines an interface for responses that can expose #attached metadata. Namespace Drupal\Core\Render Code public function setAttachments(array $attachments);

RouteProvider::getRoutesByPattern

public RouteProvider::getRoutesByPattern($pattern) Get all routes which match a certain pattern. Parameters string $pattern: The route pattern to search for (contains {} as placeholders). Return value \Symfony\Component\Routing\RouteCollection Returns a route collection of matching routes. Overrides RouteProviderInterface::getRoutesByPattern File core/lib/Drupal/Core/Routing/RouteProvider.php, line 310 Class RouteProvider A Route Provider front-end for all Drupal-stored routes. Namespa

RouteSubscriber::reset

public RouteSubscriber::reset() Resets the internal state of the route subscriber. File core/modules/views/src/EventSubscriber/RouteSubscriber.php, line 70 Class RouteSubscriber Builds up the routes of all views. Namespace Drupal\views\EventSubscriber Code public function reset() { $this->viewsDisplayPairs = NULL; }

StreamWrapperManager::getNames

public StreamWrapperManager::getNames($filter = StreamWrapperInterface::ALL) Returns registered stream wrapper names. Parameters int $filter: (Optional) Filters out all types except those with an on bit for each on bit in $filter. For example, if $filter is StreamWrapperInterface::WRITE_VISIBLE, which is equal to (StreamWrapperInterface::READ | StreamWrapperInterface::WRITE | StreamWrapperInterface::VISIBLE), then only stream wrappers with all three of these bits set are returned. Defaults to