ConfigInstaller::checkConfigurationToInstall

public ConfigInstaller::checkConfigurationToInstall($type, $name) Checks the configuration that will be installed for an extension. Parameters string $type: Type of extension to install. string $name: Name of extension to install. Throws \Drupal\Core\Config\UnmetDependenciesException \Drupal\Core\Config\PreExistingConfigException Overrides ConfigInstallerInterface::checkConfigurationToInstall File core/lib/Drupal/Core/Config/ConfigInstaller.php, line 438 Class ConfigInstaller Namespac

ConstraintManager::getDefinitionsByType

public ConstraintManager::getDefinitionsByType($type) Returns a list of constraints that support the given type. Parameters string $type: The type to filter on. Return value array An array of constraint plugin definitions supporting the given type, keyed by constraint name (plugin ID). File core/lib/Drupal/Core/Validation/ConstraintManager.php, line 130 Class ConstraintManager Constraint plugin manager. Namespace Drupal\Core\Validation Code public function getDefinitionsByType($type)

PlaceholderingRenderCache::set

public PlaceholderingRenderCache::set(array &$elements, array $pre_bubbling_elements) Caches the rendered output of a renderable array. May be called by an implementation of \Drupal\Core\Render\RendererInterface while rendering, if the #cache property is set. Parameters array $elements: A renderable array. array $pre_bubbling_elements: A renderable array corresponding to the state (in particular, the cacheability metadata) of $elements prior to the beginning of its rendering process, and t

ConfigInstaller::setSourceStorage

public ConfigInstaller::setSourceStorage(StorageInterface $storage) Sets the configuration storage that provides the default configuration. Parameters \Drupal\Core\Config\StorageInterface $storage: Return value $this Overrides ConfigInstallerInterface::setSourceStorage File core/lib/Drupal/Core/Config/ConfigInstaller.php, line 351 Class ConfigInstaller Namespace Drupal\Core\Config Code public function setSourceStorage(StorageInterface $storage) { $this->sourceStorage = $storage

LanguageConfigCollectionNameTrait::getLangcodeFromCollectionName

protected LanguageConfigCollectionNameTrait::getLangcodeFromCollectionName($collection) Converts a configuration collection name to a language code. Parameters string $collection: The configuration collection name. Return value string The language code of the collection. Throws \InvalidArgumentException Exception thrown if the provided collection name is not in the format "language.LANGCODE". See also self::createConfigCollectionName() File core/modules/language/src/Config/LanguageConfigCol

HalServiceProvider::alter

public HalServiceProvider::alter(ContainerBuilder $container) Modifies existing service definitions. Parameters ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered. Overrides ServiceModifierInterface::alter File core/modules/hal/src/HalServiceProvider.php, line 16 Class HalServiceProvider Adds hal+json as known format. Namespace Drupal\hal Code public function alter(ContainerBuilder $container) { if ($container->has('http_middleware.negotiat

Comment::setAuthorName

public Comment::setAuthorName($name) Sets the name of the author of the comment. Parameters string $name: A string containing the name of the author. Return value $this The class instance that this method is called on. Overrides CommentInterface::setAuthorName File core/modules/comment/src/Entity/Comment.php, line 404 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function setAuthorName($name) { $this->set('name', $name); return $th

HtmlCommand::render

public HtmlCommand::render() Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides InsertCommand::render File core/lib/Drupal/Core/Ajax/HtmlCommand.php, line 24 Class HtmlCommand AJAX command for calling the jQuery html() method. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'insert', 'method' => 'html', 'selector' => $this->selector, 'data' => $this->getRenderedContent(), 'settings' => $this

FinishResponseSubscriber::__construct

public FinishResponseSubscriber::__construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, CacheContextsManager $cache_contexts_manager, $http_response_debug_cacheability_headers = FALSE) Constructs a FinishResponseSubscriber object. Parameters \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager object for retrieving the correct language cod

Comment::setOwnerId

public Comment::setOwnerId($uid) Sets the entity owner's user ID. Parameters int $uid: The owner user id. Return value $this Overrides EntityOwnerInterface::setOwnerId File core/modules/comment/src/Entity/Comment.php, line 543 Class Comment Defines the comment entity class. Namespace Drupal\comment\Entity Code public function setOwnerId($uid) { $this->set('uid', $uid); return $this; }