RouteBuilder::rebuild

public RouteBuilder::rebuild() Rebuilds the route information and dumps it. Return value bool Returns TRUE if the rebuild succeeds, FALSE otherwise. Overrides RouteBuilderInterface::rebuild File core/lib/Drupal/Core/Routing/RouteBuilder.php, line 119 Class RouteBuilder Managing class for rebuilding the router table. Namespace Drupal\Core\Routing Code public function rebuild() { if ($this->building) { throw new \RuntimeException('Recursive router rebuild detected.'); } if

StaticMenuLinkOverrides::$config

The menu link overrides config object. Type: \Drupal\Core\Config\Config File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 28 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code protected $config;

EnforcedResponse::createFromException

public static EnforcedResponse::createFromException(\Exception $e) Constructs a new enforced response from the given exception. Note that it is necessary to traverse the exception chain when searching for an enforced response. Otherwise it would be impossible to find an exception thrown from within a twig template. Parameters \Exception $e: The exception where the enforced response is to be extracted from. Return value \Drupal\Core\Form\EnforcedResponse|null The enforced response or NULL if t

Schema::renameTable

Schema::renameTable($table, $new_name) Rename a table. Parameters $table: The table to be renamed. $new_name: The new name for the table. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table doesn't exist. \Drupal\Core\Database\SchemaObjectExistsException If a table with the specified new name already exists. Overrides Schema::renameTable File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 449 Class Schema PostgreSQL implementation of \Drupal

BundleModerationConfigurationForm

Form for configuring moderation usage on a given entity bundle. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\content_moderation\Form\BundleModerationConfigurationForm File core/modules/content_moderation/src/Form/Bundle

PoHeader::setLanguageName

PoHeader::setLanguageName($languageName) Set the human readable language name. Parameters string $languageName: Human readable language name. File core/lib/Drupal/Component/Gettext/PoHeader.php, line 98 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code function setLanguageName($languageName) { $this->_languageName = $languageName; }

CSS_LAYOUT

The default weight for CSS rules that layout a page. File core/includes/common.inc, line 89 Common functions that many Drupal modules will need to reference. Code const CSS_LAYOUT = -100;

UpdateReady::submitForm

public UpdateReady::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/update/src/Form/UpdateReady.php, line 118 Class UpdateReady Configure update settings for this site. Namespace Drupal\update\Form Code public function submitForm(arr

SqlContentEntityStorage::requiresEntityStorageSchemaChanges

public SqlContentEntityStorage::requiresEntityStorageSchemaChanges(EntityTypeInterface $entity_type, EntityTypeInterface $original) Checks if the changes to the entity type requires storage schema changes. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The updated entity type definition. \Drupal\Core\Entity\EntityTypeInterface $original: The original entity type definition. Return value bool TRUE if storage schema changes are required, FALSE otherwise. Overrides EntityStorag

PluralTranslation

Defines an annotation object for strings that require plural forms. Note that the return values for both 'singular' and 'plural' keys needs to be passed to \Drupal\Core\StringTranslation\TranslationInterface::formatPlural(). For example, the annotation can look like this: label_count = @ PluralTranslation( singular = "@count item", plural = "@count items", context = "cart_items", ), Remove spaces after @ in your actual plugin - these are put into this sample code so that it is