db_drop_primary_key

db_drop_primary_key($table) Drops the primary key of a database table. Parameters $table: Name of the table to be altered. Return value bool TRUE if the primary key was successfully dropped, FALSE if there was no primary key on this table to begin with. 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 dropPrimaryKey() on it. For example, $injected_database->sch

Entity::getCacheMaxAge

public Entity::getCacheMaxAge() The maximum age for which this object may be cached. Return value int The maximum time in seconds that this object may be cached. Overrides RefinableCacheableDependencyTrait::getCacheMaxAge File core/lib/Drupal/Core/Entity/Entity.php, line 490 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code public function getCacheMaxAge() { return $this->cacheMaxAge; }

views-view-fields.html.twig

Default view template to display all the fields in a row. Available variables: view: The view in use. fields: A list of fields, each one contains: content: The output of the field. raw: The raw data for the field, if it exists. This is NOT output safe. class: The safe class ID to use. handler: The Views field handler controlling this field. inline: Whether or not the field should be inline. wrapper_element: An HTML element for a wrapper. wrapper_attributes: List of attributes for wrapp

ViewsExposedForm::$title

The plugin title used in the views UI. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/modules/views/src/Annotation/ViewsExposedForm.php, line 31 Class ViewsExposedForm Defines a Plugin annotation object for views exposed form plugins. Namespace Drupal\views\Annotation Code public $title = '';

TranslatorInterface::getStringTranslation

public TranslatorInterface::getStringTranslation($langcode, $string, $context) Retrieves English string to given language. Parameters string $langcode: Language code to translate to. string $string: The source string. string $context: The string context. Return value string|false Translated string if there is a translation, FALSE if not. File core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php, line 23 Class TranslatorInterface Interface for objects capable of strin

ConfigImportSubscriber::$themeData

Theme data. Type: \Drupal\Core\Extension\Extension[] File core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php, line 23 Class ConfigImportSubscriber Config import subscriber for config import events. Namespace Drupal\Core\EventSubscriber Code protected $themeData;

CacheTagsChecksumInterface::getCurrentChecksum

public CacheTagsChecksumInterface::getCurrentChecksum(array $tags) Returns the sum total of validations for a given set of tags. Called by a backend when storing a cache item. Parameters string[] $tags: Array of cache tags. Return value string Cache tag invalidations checksum. File core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php, line 32 Class CacheTagsChecksumInterface Provides checksums for cache tag invalidations. Namespace Drupal\Core\Cache Code public function getCurre

BreakLockForm::create

public static BreakLockForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service co

View::mergeDefaultDisplaysOptions

public View::mergeDefaultDisplaysOptions() Add defaults to the display options. Overrides ViewEntityInterface::mergeDefaultDisplaysOptions File core/modules/views/src/Entity/View.php, line 426 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function mergeDefaultDisplaysOptions() { $displays = array(); foreach ($this->get('display') as $key => $options) { $options += array( 'display_options' => array(), 'displa

ActiveTheme::$owner

The path to the theme engine for root themes. Type: string File core/lib/Drupal/Core/Theme/ActiveTheme.php, line 41 Class ActiveTheme Defines a theme and its information needed at runtime. Namespace Drupal\Core\Theme Code protected $owner;