ViewsEntitySchemaSubscriber::baseTableRename

protected ViewsEntitySchemaSubscriber::baseTableRename($all_views, $entity_type_id, $old_base_table, $new_base_table) Updates views if a base table is renamed. Parameters \Drupal\views\Entity\View[] $all_views: All views. string $entity_type_id: The entity type ID. string $old_base_table: The old base table name. string $new_base_table: The new base table name. File core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php, line 257 Class ViewsEntitySchemaSubscriber Reacts to

SqlContentEntityStorageSchema::hasColumnChanges

protected SqlContentEntityStorageSchema::hasColumnChanges(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) Compares schemas to check for changes in the column definitions. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: Current field storage definition. \Drupal\Core\Field\FieldStorageDefinitionInterface $original: The original field storage definition. Return value bool Returns TRUE if there are schema changes i

update_create_fetch_task

update_create_fetch_task($project) Adds a task to the queue for fetching release history data for a project. We only create a new fetch task if there's no task already in the queue for this particular project (based on 'update_fetch_task' key-value collection). Parameters $project: Associative array of information about a project as created by \Drupal\Update\UpdateManager::getProjects(), including keys such as 'name' (short name), and the 'info' array with data from a .info.yml file for the pr

FieldItemBase::getSetting

protected FieldItemBase::getSetting($setting_name) Returns the value of a field setting. Parameters string $setting_name: The setting name. Return value mixed The setting value. File core/lib/Drupal/Core/Field/FieldItemBase.php, line 97 Class FieldItemBase An entity field item. Namespace Drupal\Core\Field Code protected function getSetting($setting_name) { return $this->getFieldDefinition()->getSetting($setting_name); }

SearchPageAddForm::actions

protected SearchPageAddForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/search/src/Form/SearchPageAddForm.php, line 25 Class SearchPageAddForm Provides a form for adding a search page. Namespace Drupal\search\Form Code protected function actions(array $form, FormStateInterf

update_manager_archive_extract

update_manager_archive_extract($file, $directory) Unpacks a downloaded archive file. Parameters string $file: The filename of the archive you wish to extract. string $directory: The directory you wish to extract the archive into. Return value Archiver The Archiver object used to extract the archive. Throws Exception File core/modules/update/update.manager.inc, line 150 Administrative screens and processing functions of the Update Manager module. Code function update_manager_archive_extract

QuickEditFieldForm::init

protected QuickEditFieldForm::init(FormStateInterface $form_state, EntityInterface $entity, $field_name) Initialize the form state and the entity before the first form build. File core/modules/quickedit/src/Form/QuickEditFieldForm.php, line 126 Class QuickEditFieldForm Builds and process a form for editing a single entity field. Namespace Drupal\quickedit\Form Code protected function init(FormStateInterface $form_state, EntityInterface $entity, $field_name) { // @todo Rather than spe

UserSession::getTimeZone

public UserSession::getTimeZone() Returns the timezone of this account. Return value string Name of the timezone. Overrides AccountInterface::getTimeZone File core/lib/Drupal/Core/Session/UserSession.php, line 187 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code public function getTimeZone() { return $this->timezone; }

SelectExtender::isNotNull

SelectExtender::isNotNull($field) Sets a condition that the specified field be NOT NULL. Parameters $field: The name of the field to check. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::isNotNull File core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 451 Class SelectExtender The base extender class for Select queries. Namespace Drupal\Core\Database\Query Code function isNotNull($field) { $this->query->i

UserCancelForm::getCancelUrl

public UserCancelForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/user/src/Form/UserCancelForm.php, line 40 Class UserCancelForm Provides a confirmation form for cancelling user account. Namespace Drupal\user\Form Code public function getCancelUrl() { return $this->entity->urlInfo(); }