hook_field_storage_config_update_forbid

hook_field_storage_config_update_forbid(\Drupal\field\FieldStorageConfigInterface $field_storage, \Drupal\field\FieldStorageConfigInterface $prior_field_storage) Forbid a field storage update from occurring. Any module may forbid any update for any reason. For example, the field's storage module might forbid an update if it would change the storage schema while data for the field exists. A field type module might forbid an update if it would change existing data's semantics, or if there are ext

Url::validateUrl

public static Url::validateUrl(&$element, FormStateInterface $form_state, &$complete_form) Form element validation handler for #type 'url'. Note that #maxlength and #required is validated by _form_validate() already. File core/lib/Drupal/Core/Render/Element/Url.php, line 62 Class Url Provides a form element for input of a URL. Namespace Drupal\Core\Render\Element Code public static function validateUrl(&$element, FormStateInterface $form_state, &$complete_form) { $val

FormStateDecoratorBase::setBuildInfo

public FormStateDecoratorBase::setBuildInfo(array $build_info) Sets the build info for the form. Parameters array $build_info: An array of build info. Return value $this Overrides FormStateInterface::setBuildInfo See also \Drupal\Core\Form\FormState::$build_info File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 471 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form Code public function setBuildInfo(array $build_info) { $this->dec

HtmlRenderer::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php, line 58 Class HtmlRenderer Default main content renderer for HTML requests. Namespace Drupal\Core\Render\MainContent Code protected $moduleHandler;

FTPExtension::removeDirectoryJailed

protected FTPExtension::removeDirectoryJailed($directory) Removes a directory. Parameters string $directory: The directory to be removed. Overrides FileTransfer::removeDirectoryJailed File core/lib/Drupal/Core/FileTransfer/FTPExtension.php, line 45 Class FTPExtension Defines a file transfer class using the PHP FTP extension. Namespace Drupal\Core\FileTransfer Code protected function removeDirectoryJailed($directory) { $pwd = ftp_pwd($this->connection); if (!ftp_chdir($this->

TypedDataManager::create

public TypedDataManager::create(DataDefinitionInterface $definition, $value = NULL, $name = NULL, $parent = NULL) Creates a new typed data object instance. Parameters \Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition of the typed data object. For backwards-compatibility an array representation of the data definition may be passed also. mixed $value: (optional) The data value. If set, it has to match one of the supported data type format as documented for the data

system_path_delete

system_path_delete($path) Implements hook_path_delete(). File core/modules/system/system.module, line 1445 Configuration system that lets administrators modify the workings of the site. Code function system_path_delete($path) { \Drupal::service('path.alias_manager')->cacheClear($path['source']); }

DrupalKernel::discoverServiceProviders

public DrupalKernel::discoverServiceProviders() Discovers available serviceProviders. Return value array The available serviceProviders. Overrides DrupalKernelInterface::discoverServiceProviders File core/lib/Drupal/Core/DrupalKernel.php, line 567 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function discoverServiceProviders() { $this->serviceYamls = array( 'app' => array(), 'site' => array(), ); $this

Container::$parameters

The parameters of the container. Type: array File core/lib/Drupal/Component/DependencyInjection/Container.php, line 60 Class Container Provides a container optimized for Drupal's needs. Namespace Drupal\Component\DependencyInjection Code protected $parameters = array();

FieldConfigInterface::setPropertyConstraints

public FieldConfigInterface::setPropertyConstraints($name, array $constraints) Sets constraints for a given field item property. Note: this overwrites any existing property constraints. If you need to add to the existing constraints, use \Drupal\Core\Field\FieldConfigInterface::addPropertyConstraints() Note that constraints added via this method are not stored in configuration and as such need to be added at runtime using hook_entity_bundle_field_info_alter(). Parameters string $name: The name