language_negotiation_url_prefixes_update

language_negotiation_url_prefixes_update() Update the list of prefixes from the installed languages. File core/modules/language/language.module, line 283 Add language handling functionality to Drupal. Code function language_negotiation_url_prefixes_update() { $config = \Drupal::configFactory()->getEditable('language.negotiation'); $prefixes = $config->get('url.prefixes'); foreach (\Drupal::languageManager()->getLanguages() as $language) { // The prefix for this language sho

Node::isPromoted

public Node::isPromoted() Returns the node promotion status. Return value bool TRUE if the node is promoted. Overrides NodeInterface::isPromoted File core/modules/node/src/Entity/Node.php, line 219 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function isPromoted() { return (bool) $this->get('promote')->value; }

DestructableInterface::destruct

public DestructableInterface::destruct() Performs destruct operations. File core/lib/Drupal/Core/DestructableInterface.php, line 20 Class DestructableInterface The interface for services that need explicit destruction. Namespace Drupal\Core Code public function destruct();

BookSettingsForm::getFormId

public BookSettingsForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/book/src/Form/BookSettingsForm.php, line 16 Class BookSettingsForm Configure book settings for this site. Namespace Drupal\book\Form Code public function getFormId() { return 'book_admin_settings'; }

db_or

db_or() Returns a new DatabaseCondition, set to "OR" all conditions together. Return value \Drupal\Core\Database\Query\Condition A new Condition object, set to "OR" all conditions together. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Create a \Drupal\Core\Database\Query\Condition object, specifying an OR conjunction: new Condition('OR'); See also \Drupal\Core\Database\Query\Condition Related topics Database abstraction layer Allow the use of different database servers u

ConfigurableLanguageManager::isMultilingual

public ConfigurableLanguageManager::isMultilingual() Returns whether or not the site has more than one language added. Return value bool TRUE if more than one language is added, FALSE otherwise. Overrides LanguageManager::isMultilingual File core/modules/language/src/ConfigurableLanguageManager.php, line 143 Class ConfigurableLanguageManager Overrides default LanguageManager to provide configured languages. Namespace Drupal\language Code public function isMultilingual() { return cou

DataDefinitionInterface

Interface for data definitions. Data definitions are used to describe data based upon available data types. For example, a plugin could describe its parameters using data definitions in order to specify what kind of data is required for it. Definitions that describe lists or complex data have to implement the respective interfaces, such that the metadata about contained list items or properties can be retrieved from the definition. Hierarchy interface \Drupal\Core\TypedData\DataDefinitionInterf

PluralTranslatableMarkup::createFromTranslatedString

public static PluralTranslatableMarkup::createFromTranslatedString($count, $translated_string, array $args = [], array $options = []) Constructs a new class instance from already translated markup. This method ensures that the string is pluralized correctly. As opposed to the __construct() method, this method is designed to be invoked with a string already translated (such as with configuration translation). Parameters int $count: The item count to display. string $translated_string: The alrea

ViewsDisplay

Defines a Plugin annotation object for views display plugins. Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\views\Annotation\ViewsPluginAnnotationBase implements AnnotationInterfaceclass \Drupal\views\Annotation\ViewsDisplay See also \Drupal\views\Plugin\views\display\DisplayPluginBase Related topics Annotations Annotations for class discovery and metadata description. Views display plugins Plugins to handle the overall display of views.

ThemeSettingsForm::getEditableConfigNames

protected ThemeSettingsForm::getEditableConfigNames() Gets the configuration names that will be editable. Return value array An array of configuration object names that are editable if called in conjunction with the trait's config() method. Overrides ConfigFormBaseTrait::getEditableConfigNames File core/modules/system/src/Form/ThemeSettingsForm.php, line 91 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code pro