Schema::addIndex

public Schema::addIndex($table, $name, $fields, array $spec) Add an index. @todo remove the $spec argument whenever schema introspection is added. Parameters $table: The table to be altered. $name: The name of the index. $fields: An array of field names or field information; if field information is passed, it's an array whose first element is the field name and whose second is the maximum length in the index. For example, the following will use the full length of the `foo` field, but limit the

UpdateBuildIdCommand::$old

Old build id. Type: string File core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php, line 27 Class UpdateBuildIdCommand AJAX command for updating the value of a hidden form_build_id input element on a form. It requires the form passed in to have keys for both the old build ID in #build_id_old and the new build ID in #build_id. Namespace Drupal\Core\Ajax Code protected $old;

Term

Defines the taxonomy term entity. Plugin annotation @ContentEntityType( id = "taxonomy_term", label = @Translation("Taxonomy term"), bundle_label = @Translation("Vocabulary"), handlers = { "storage" = "Drupal\taxonomy\TermStorage", "storage_schema" = "Drupal\taxonomy\TermStorageSchema", "view_builder" = "Drupal\taxonomy\TermViewBuilder", "access" = "Drupal\taxonomy\TermAccessControlHandler", "views_data" = "Drupal\taxonomy\TermViewsData", "form" = { "defaul

Condition::match

protected Condition::match(array $condition, $value) Perform the actual matching. Parameters array $condition: The condition array as created by the condition() method. string $value: The value to match against. Return value bool TRUE when matches else FALSE. File core/lib/Drupal/Core/Config/Entity/Query/Condition.php, line 156 Class Condition Defines the condition class for the config entity query. Namespace Drupal\Core\Config\Entity\Query Code protected function match(array $condit

PoHeader::evaluatePlural

protected PoHeader::evaluatePlural($element_stack, $n) Evaluate the plural element stack using a plural value. Using an element stack, which represents a plural formula, we calculate which plural string should be used for a given plural value. An example of plural formula parting and evaluation: Plural formula: 'n!=1' This formula is parsed by parseArithmetic() to a stack (array) of elements: array( 0 => '$n', 1 => '1', 2 => '!=', ); The evaluatePlural() method evaluates the $element_s

ImageToolkitManager

Manages image toolkit plugins. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\ImageToolkit\ImageToolkitManager See also \Drupal\Core\ImageToolkit\Annotation\ImageToolkit \Drupal\Core\ImageToolkit\ImageToolkitInterface \Drupal

aggregator_help

aggregator_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/aggregator/aggregator.module, line 19 Used to aggregate syndicated content (RSS, RDF, and Atom). Code function aggregator_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.aggregator': $path_validator = \Drupal::pathValidator(); $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>'

StringTranslationTrait::t

protected StringTranslationTrait::t($string, array $args = array(), array $options = array()) Translates a string to the current language or to a given language. See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for important security information and usage guidelines. In order for strings to be localized, make them available in one of the ways supported by the Localization API. When possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwi

FilterFormat::filters

public FilterFormat::filters($instance_id = NULL) Returns the ordered collection of filter plugin instances or an individual plugin instance. Parameters string $instance_id: (optional) The ID of a filter plugin instance to return. Return value \Drupal\filter\FilterPluginCollection|\Drupal\filter\Plugin\FilterInterface Either the filter collection or a specific filter plugin instance. Overrides FilterFormatInterface::filters File core/modules/filter/src/Entity/FilterFormat.php, line 134 Cla

DateFormatEditForm

Provides a form for editing a date format. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\system\Form\DateFormatFormBaseclass \Drupal\system\Form\DateFormatEditForm File core/modules/system/src/Form/DateFormatEditForm.ph