AttachedAssetsInterface::setSettings

public AttachedAssetsInterface::setSettings(array $settings) Sets the JavaScript settings that are attached to the current response. Parameters array $settings: The needed JavaScript settings. Return value $this File core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 55 Class AttachedAssetsInterface The attached assets collection for the current response. Namespace Drupal\Core\Asset Code public function setSettings(array $settings);

ConfigEntityInterface::set

public ConfigEntityInterface::set($property_name, $value) Sets the value of a property. Parameters string $property_name: The name of the property that should be set. mixed $value: The value the property should be set to. Return value $this File core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php, line 137 Class ConfigEntityInterface Defines a common interface for configuration entities. Namespace Drupal\Core\Config\Entity Code public function set($property_name, $value);

NodeAccessControlHandler::writeDefaultGrant

public NodeAccessControlHandler::writeDefaultGrant() Creates the default node access grant entry on the grant storage. Overrides NodeAccessControlHandlerInterface::writeDefaultGrant File core/modules/node/src/NodeAccessControlHandler.php, line 170 Class NodeAccessControlHandler Defines the access control handler for the node entity type. Namespace Drupal\node Code public function writeDefaultGrant() { $this->grantStorage->writeDefault(); }

SessionCacheContext::getLabel

public static SessionCacheContext::getLabel() File core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php, line 17 Class SessionCacheContext Defines the SessionCacheContext service, for "per session" caching. Namespace Drupal\Core\Cache\Context Code public static function getLabel() { return t('Session'); }

LanguageListBuilder::buildRow

public LanguageListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides DraggableListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/language/src/LanguageListBuilder.php, line 103 Class LanguageListBuilder Defines a class to build a

ArrayElement::parse

protected ArrayElement::parse() Builds an array of contained elements. Return value \Drupal\Core\TypedData\TypedDataInterface[] An array of elements contained in this element. File core/lib/Drupal/Core/Config/Schema/ArrayElement.php, line 31 Class ArrayElement Defines a generic configuration element that contains multiple properties. Namespace Drupal\Core\Config\Schema Code protected function parse() { $elements = array(); foreach ($this->getAllKeys() as $key) { $value = is

AssetCollectionGrouperInterface::group

public AssetCollectionGrouperInterface::group(array $assets) Groups a collection of assets into logical groups of asset collections. Parameters array $assets: An asset collection. Return value array A sorted array of asset groups. File core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php, line 19 Class AssetCollectionGrouperInterface Interface defining a service that logically groups a collection of assets. Namespace Drupal\Core\Asset Code public function group(array $asset

editor_element_info_alter

editor_element_info_alter(&$types) Implements hook_element_info_alter(). Extends the functionality of text_format elements (provided by Filter module), so that selecting a text format notifies a client-side text editor when it should be enabled or disabled. See also \Drupal\filter\Element\TextFormat File core/modules/editor/editor.module, line 64 Adds bindings for client-side "text editors" to text formats. Code function editor_element_info_alter(&$types) { $types['text_format']['#

ConfigDependencyDeleteFormTrait

Lists affected configuration entities by a dependency removal. This trait relies on the StringTranslationTrait. Hierarchy trait \Drupal\Core\Config\Entity\ConfigDependencyDeleteFormTrait File core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php, line 13 Namespace Drupal\Core\Config\Entity Members Name Modifiers Type Description ConfigDependencyDeleteFormTrait::addDependencyListsToForm protected function Adds form elements to list affected configuration

UpdateRegistry::filterOutInvokedUpdatesByModule

public UpdateRegistry::filterOutInvokedUpdatesByModule($module) Filters out already executed update functions by module. Parameters string $module: The module name. File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 254 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code public function filterOutInvokedUpdatesByModule($module) { $existing_update_functions = $this->keyValue->get('existing_updates', []); $remaining_up