ReadOnlyStream::setUri

ReadOnlyStream::setUri($uri) Sets the absolute stream resource URI. This allows you to set the URI. Generally is only called by the factory method. Parameters string $uri: A string containing the URI that should be used for this instance. Overrides StreamWrapperInterface::setUri File core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 42 Class ReadOnlyStream Defines a read-only Drupal stream wrapper base class. Namespace Drupal\Core\StreamWrapper Code function setUri($uri) {

db_field_exists

db_field_exists($table, $field) Checks if a column exists in the given table. Parameters $table: The name of the table in drupal (no prefixing). $field: The name of the field. Return value bool TRUE if the given column exists, otherwise FALSE. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call fieldExists() on it. For example, $injected_database->schema()->fie

template_preprocess_field_ui_table

template_preprocess_field_ui_table(&$variables) Prepares variables for field UI overview table templates. Default template: field-ui-table.html.twig. Parameters array $variables: An associative array containing: elements: An associative array containing a Form API structure to be rendered as a table. File core/modules/field_ui/field_ui.module, line 228 Allows administrators to attach custom fields to fieldable types. Code function template_preprocess_field_ui_table(&$variables) {

Theme::postInstallTasks

public Theme::postInstallTasks() Returns an array of links to pages that should be visited post operation. Return value array Links which provide actions to take after the install is finished. Overrides Updater::postInstallTasks File core/lib/Drupal/Core/Updater/Theme.php, line 89 Class Theme Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Namespace Drupal\Core\Updater Code public function postInstallTasks() { // Since this

OverviewTerms::buildForm

public OverviewTerms::buildForm(array $form, FormStateInterface $form_state, VocabularyInterface $taxonomy_vocabulary = NULL) Form constructor. Display a tree of all the terms in a vocabulary, with options to edit each one. The form is made drag and drop by the theme function. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\taxonomy\VocabularyInterface $taxonomy_vocabular

MenuTreeStorage::delete

public MenuTreeStorage::delete($id) Deletes a menu link definition from the storage. Parameters string $id: The menu link plugin ID. Overrides MenuTreeStorageInterface::delete File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 398 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code public function delete($id) { // Children get re-attached to the menu link's parent. $item = $this->loadFull($id); // It's possible the link

ViewEditForm::$dateFormatter

The date formatter service. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/modules/views_ui/src/ViewEditForm.php, line 44 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code protected $dateFormatter;

MenuTreeStorage::getRootPathIds

public MenuTreeStorage::getRootPathIds($id) Returns all the IDs that represent the path to the root of the tree. array( 'p1' => 1, 'p2' => 6, 'p3' => 8, 'p4' => 0, 'p5' => 0, 'p6' => 0, 'p7' => 0, 'p8' => 0, 'p9' => 0 ) Parameters string $id: A menu link ID. Return value array An associative array of IDs with keys equal to values that represents the path from the given ID to the root of the tree. If $id is an ID that exists,

QueryBase::condition

public QueryBase::condition($property, $value = NULL, $operator = NULL, $langcode = NULL) Add a condition to the query or a condition group. For example, to find all entities containing both the Turkish 'merhaba' and the Polish 'siema' within a 'greetings' text field: $entity_ids = \Drupal::entityQuery($entity_type) ->condition('greetings', 'merhaba', '=', 'tr') ->condition('greetings.value', 'siema', '=', 'pl') ->execute(); Parameters $field: Name of the field being qu

Composer::findPackageKey

protected static Composer::findPackageKey($package_name) Find the array key for a given package name with a case-insensitive search. Parameters string $package_name: The package name from composer. This is always already lower case. Return value string|null The string key, or NULL if none was found. File core/lib/Drupal/Core/Composer/Composer.php, line 202 Class Composer Provides static functions for composer script events. Namespace Drupal\Core\Composer Code protected static functio