Database::isActiveConnection

final public static Database::isActiveConnection() Determines if there is an active connection. Note that this method will return FALSE if no connection has been established yet, even if one could be. Return value bool TRUE if there is at least one database connection established, FALSE otherwise. File core/lib/Drupal/Core/Database/Database.php, line 181 Class Database Primary front-controller for the database system. Namespace Drupal\Core\Database Code final public static function is

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

BlockContentInterface::getTheme

public BlockContentInterface::getTheme() Gets the theme value. When creating a new block content block from the block library, the user is redirected to the configure form for that block in the given theme. The theme is stored against the block when the block content add form is shown. Return value string The theme name. File core/modules/block_content/src/BlockContentInterface.php, line 75 Class BlockContentInterface Provides an interface defining a custom block entity. Namespace Drup

action_help

action_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/action/action.module, line 13 This is the Actions module for executing stored actions. Code function action_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.action': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Actions module provides tasks that can be executed by the site

Tour::getModule

public Tour::getModule() Gets the module this tour belongs to. Return value string The module this tour belongs to. Overrides TourInterface::getModule File core/modules/tour/src/Entity/Tour.php, line 130 Class Tour Defines the configured tour entity. Namespace Drupal\tour\Entity Code public function getModule() { return $this->module; }

LanguageEditForm

Controller for language edit forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\language\Form\LanguageFormBaseclass \Drupal\language\Form\LanguageEditForm File core/modules/language/src/Form/LanguageEditForm.php, line

MessageForm::form

public MessageForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides ContentEntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/contact/src/MessageForm.php, line 91 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code public function form(array $form, FormStateInterface $form_state) { $user = $this->currentUser

ModerationStateTransitionForm::save

public ModerationStateTransitionForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, dependin

datetime-wrapper.html.twig

Default theme implementation of a datetime form wrapper. Available variables: content: The form element to be output, usually a datelist, or datetime. title: The title of the form element. title_attributes: HTML attributes for the title wrapper. description: Description text for the form element. required: An indicator for whether the associated form element is required. See also template_preprocess_datetime_wrapper() File core/modules/system/templates/datetime-wrapper.html.twig Rela

StringBase::setId

public StringBase::setId($lid) Sets the string unique identifier. Parameters int $id: The string identifier. Return value $this Overrides StringInterface::setId File core/modules/locale/src/StringBase.php, line 74 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function setId($lid) { $this->lid = $lid; return $this; }