ColorConfigCacheInvalidator::getSubscribedEvents

public static ColorConfigCacheInvalidator::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $prio

VocabularyForm::create

public static VocabularyForm::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 c

NodeAccessControlHandler::writeGrants

public NodeAccessControlHandler::writeGrants(NodeInterface $node, $delete = TRUE) Writes a list of grants to the database, deleting any previously saved ones. Modules that use node access can use this function when doing mass updates due to widespread permission changes. Note: Don't call this function directly from a contributed module. Call \Drupal\node\NodeAccessControlHandlerInterface::acquireGrants() instead. Parameters \Drupal\node\NodeInterface $node: The node whose grants are being writ

LanguageInterface::STATE_SITE_DEFAULT

The language state used when referring to the site's default language. File core/lib/Drupal/Core/Language/LanguageInterface.php, line 72 Class LanguageInterface Defines a language. Namespace Drupal\Core\Language Code const STATE_SITE_DEFAULT = 4;

LibraryDependencyResolver::__construct

public LibraryDependencyResolver::__construct(LibraryDiscoveryInterface $library_discovery) Constructs a new LibraryDependencyResolver instance. Parameters \Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery service. File core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php, line 23 Class LibraryDependencyResolver Resolves the dependencies of asset (CSS/JavaScript) libraries. Namespace Drupal\Core\Asset Code public function __construct(LibraryDis

RemoveCommand::render

public RemoveCommand::render() Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/RemoveCommand.php, line 40 Class RemoveCommand AJAX command for calling the jQuery remove() method. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'remove', 'selector' => $this->selector, ); }

ImageEffectManager

Manages image effect plugins. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\image\ImageEffectManager See also hook_image_effect_info_alter() \Drupal\image\Annotation\ImageEffect \Drupal\image\ConfigurableImageEffectInterface \Dru

FieldConfigBase::setRequired

public FieldConfigBase::setRequired($required) [@inheritdoc} Overrides FieldConfigInterface::setRequired File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 377 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function setRequired($required) { $this->required = $required; return $this; }

DataDefinitionInterface::getConstraints

public DataDefinitionInterface::getConstraints() Returns an array of validation constraints. The validation constraints of a definition consist of any for it defined constraints and default constraints, which are generated based on the definition and its data type. See \Drupal\Core\TypedData\TypedDataManager::getDefaultConstraints(). Constraints are defined via an array, having constraint plugin IDs as key and constraint options as values, e.g. $constraints = array( 'Range' => array('min'

StatementEmpty::fetchAll

public StatementEmpty::fetchAll($mode = NULL, $column_index = NULL, $constructor_arguments = NULL) Returns an array containing all of the result set rows. Parameters $mode: One of the PDO::FETCH_* constants. $column_index: If $mode is PDO::FETCH_COLUMN, the index of the column to fetch. $constructor_arguments: If $mode is PDO::FETCH_CLASS, the arguments to pass to the constructor. Return value An array of results. Overrides StatementInterface::fetchAll File core/lib/Drupal/Core/Database/State