ImageStyleEditForm::save

public ImageStyleEditForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the op

ModuleHandlerInterface::getImplementations

public ModuleHandlerInterface::getImplementations($hook) Determines which modules are implementing a hook. Parameters string $hook: The name of the hook (e.g. "help" or "menu"). Return value array An array with the names of the modules which are implementing this hook. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 184 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function get

CacheCollector::get

public CacheCollector::get($key) Gets value from the cache. Parameters string $key: Key that identifies the data. Return value mixed The corresponding cache data. Overrides CacheCollectorInterface::get File core/lib/Drupal/Core/Cache/CacheCollector.php, line 142 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code public function get($key) { $this->lazyLoadCache(); if (isset($this->storage[$key]) || array_key_exists($key,

locale_preprocess_node

locale_preprocess_node(&$variables) Implements hook_preprocess_HOOK() for node templates. File core/modules/locale/locale.module, line 789 Enables the translation of the user interface to languages other than English. Code function locale_preprocess_node(&$variables) { /* @var $node \Drupal\node\NodeInterface */ $node = $variables['node']; if ($node->language()->getId() != LanguageInterface::LANGCODE_NOT_SPECIFIED) { $interface_language = \Drupal::languageManager()->

EntityManager::getFormModes

public EntityManager::getFormModes($entity_type_id) Overrides EntityDisplayRepositoryInterface::getFormModes Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 304 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function getFormModes($entity_type_id) { return $this->container->get('entity_display.repository')->getFormModes

DynamicPageCacheSubscriber::__construct

public DynamicPageCacheSubscriber::__construct(RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, RenderCacheInterface $render_cache, array $renderer_config) Constructs a new DynamicPageCacheSubscriber object. Parameters \Drupal\Core\PageCache\RequestPolicyInterface $request_policy: A policy rule determining the cacheability of a request. \Drupal\Core\PageCache\ResponsePolicyInterface $response_policy: A policy rule determining the cacheability of the response. \

FormElementBase

Provides a common base class for form elements. Hierarchy class \Drupal\config_translation\FormElement\FormElementBase implements ElementInterface uses StringTranslationTrait File core/modules/config_translation/src/FormElement/FormElementBase.php, line 14 Namespace Drupal\config_translation\FormElement Members Name Modifiers Type Description FormElementBase::$definition protected property The data definition of the element this form element is for. FormElementBase::$e

OptimizedPhpArrayDumper::getParameterCall

protected OptimizedPhpArrayDumper::getParameterCall($name) Gets a parameter reference in a suitable PHP array format. Parameters string $name: The name of the parameter to get a reference for. Return value string|\stdClass A suitable representation of the parameter reference. File core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php, line 500 Class OptimizedPhpArrayDumper OptimizedPhpArrayDumper dumps a service container as a serialized PHP array. Namespace

Color::getInfo

public Color::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Color.php, line 31 Class Color Provides a form element for choosing a color. Namespace Drupal\Core\Render\Element Code public function

ImageEffectBase::calculateDependencies

public ImageEffectBase::calculateDependencies() Calculates dependencies for the configured plugin. Dependencies are saved in the plugin's configuration entity and are used to determine configuration synchronization order. For example, if the plugin integrates with specific user roles, this method should return an array of dependencies listing the specified roles. Return value array An array of dependencies grouped by type (config, content, module, theme). For example: array( 'config' =&g