ConfigManager::__construct

public ConfigManager::__construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config_manager, TranslationInterface $string_translation, StorageInterface $active_storage, EventDispatcherInterface $event_dispatcher) Creates ConfigManager objects. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory. \Dru

Schema::fieldSetNoDefault

public Schema::fieldSetNoDefault($table, $field) Set a field to have no default value. Parameters $table: The table to be altered. $field: The field to be altered. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table or field doesn't exist. Overrides Schema::fieldSetNoDefault File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 701 Class Schema SQLite implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\sql

ViewAddForm::submitForm

public ViewAddForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless the e

MetadataBag::CSRF_TOKEN_SEED

The key used to store the CSRF token seed in the session. File core/lib/Drupal/Core/Session/MetadataBag.php, line 16 Class MetadataBag Provides a container for application specific session metadata. Namespace Drupal\Core\Session Code const CSRF_TOKEN_SEED = 's';

ViewUI::toLink

public ViewUI::toLink($text = NULL, $rel = 'edit-form', array $options = []) Generates the HTML for a link to this entity. Parameters string|null $text: (optional) The link text for the anchor tag as a translated string. If NULL, it will use the entity's label. Defaults to NULL. string $rel: (optional) The link relationship type. Defaults to 'canonical'. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Return value \Drupal\Core\Lin

DataDefinition::getConstraints

public DataDefinition::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' => 5,

ContentEntityForm::getEditedFieldNames

protected ContentEntityForm::getEditedFieldNames(FormStateInterface $form_state) Gets the names of all fields edited in the form. If the entity form customly adds some fields to the form (i.e. without using the form display), it needs to add its fields here and override flagViolations() for displaying the violations. Parameters \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value string[] An array of field names. File core/lib/Drupal/Core/Entity/Conten

AlterableInterface::addTag

public AlterableInterface::addTag($tag) Adds a tag to a query. Tags are strings that identify a query. A query may have any number of tags. Tags are used to mark a query so that alter hooks may decide if they wish to take action. Tags should be all lower-case and contain only letters, numbers, and underscore, and start with a letter. That is, they should follow the same rules as PHP identifiers in general. Parameters $tag: The tag to add. Return value \Drupal\Core\Database\Query\AlterableInte

ViewUI::setThirdPartySetting

public ViewUI::setThirdPartySetting($module, $key, $value) Sets the value of a third-party setting. Parameters string $module: The module providing the third-party setting. string $key: The setting name. mixed $value: The setting value. Return value $this Overrides ThirdPartySettingsInterface::setThirdPartySetting File core/modules/views_ui/src/ViewUI.php, line 1269 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function setThirdPartySetting(

file_stream_wrapper_valid_scheme

file_stream_wrapper_valid_scheme($scheme) Checks that the scheme of a stream URI is valid. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::validScheme(). Related topics File interface Common file handling functions. File core/includes/file.inc, line 91 API for handling file uploads and server file management. Code function file_stream_wrapper_valid_scheme($scheme) { return \Drupal::service('file_system')->validScheme($scheme); }