_color_gd

_color_gd($img, $hex) Converts a hex triplet into a GD color. File core/modules/color/color.module, line 731 Allows users to change the color scheme of themes. Code function _color_gd($img, $hex) { $c = array_merge(array($img), _color_unpack($hex)); return call_user_func_array('imagecolorallocate', $c); }

SearchPageFormBase::validateForm

public SearchPageFormBase::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/search/src/Form/SearchPageFormBase.php, line 143 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code public funct

Form

Provides a render element for a form. Plugin annotation @RenderElement("form") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\Core\Render\Element\Form File core/lib/Drupal/Core/Render/Element/Form.php, line 10 Namespace Drupal\Core\R

ConfigEntityBundleBase

A base class for config entity types that act as bundles. Entity types that want to use this base class must use bundle_of in their annotation to specify for which entity type they are providing bundles for. Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTraitclass \Drupal\Core\Config\Entity\ConfigEntityBase implements ConfigEntityInterface uses PluginDependencyTraitclass \Drupal\Core\Config\Entity\ConfigEntit

BackendChain::prependBackend

public BackendChain::prependBackend(CacheBackendInterface $backend) Prepends a cache backend to the cache chain. Parameters CacheBackendInterface $backend: The backend to be prepended to the cache chain. Return value \Drupal\Core\Cache\BackendChain The called object. File core/lib/Drupal/Core/Cache/BackendChain.php, line 64 Class BackendChain Defines a chained cache implementation for combining multiple cache backends. Namespace Drupal\Core\Cache Code public function prependBackend(C

BatchStorage::create

public BatchStorage::create(array $batch) Creates and saves a batch. Parameters array $batch: The array representing the batch to create. Overrides BatchStorageInterface::create File core/lib/Drupal/Core/Batch/BatchStorage.php, line 123 Class BatchStorage Namespace Drupal\Core\Batch Code public function create(array $batch) { // Ensure that a session is started before using the CSRF token generator. $this->session->start(); $try_again = FALSE; try { // The batch tab

ContextualLinkManager

Defines a contextual link plugin manager to deal with contextual links. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\Menu\ContextualLinkManager implements ContextualLinkManagerInterface See also \Drupal\Core\Menu\Contextual

Action::$type

The entity type the action can apply to. @todo Replace with \Drupal\Core\Plugin\Context\Context. Type: string File core/lib/Drupal/Core/Annotation/Action.php, line 55 Class Action Defines an Action annotation object. Namespace Drupal\Core\Annotation Code public $type = '';

ConfigEntityInterface::isUninstalling

public ConfigEntityInterface::isUninstalling() Returns whether this entity is being changed during the uninstall process. If you are writing code that responds to a change in this entity (insert, update, delete, presave, etc.), and your code would result in a configuration change (whether related to this configuration entity, another configuration entity, or non-entity configuration) or your code would result in a change to this entity itself, you need to check and see if this entity change is

LocalReadOnlyStream::stream_metadata

public LocalReadOnlyStream::stream_metadata($uri, $option, $value) Does not change meta data as this is a read-only stream wrapper. Overrides LocalStream::stream_metadata File core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 112 Class LocalReadOnlyStream Defines a read-only Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public function stream_metadata($uri, $option, $value) { trigger_error('stream_metadata() not supported f