ConfigMapperInterface::getAddRouteName

public ConfigMapperInterface::getAddRouteName() Returns route name for the translation add form route. Return value string Route name for the mapper. File core/modules/config_translation/src/ConfigMapperInterface.php, line 98 Class ConfigMapperInterface Defines an interface for configuration mapper. Namespace Drupal\config_translation Code public function getAddRouteName();

breakpoint.module

Manage breakpoints and breakpoint groups for responsive designs. File core/modules/breakpoint/breakpoint.module Functions Name Description breakpoint_help Implements hook_help(). breakpoint_themes_installed Implements hook_themes_installed() breakpoint_themes_uninstalled Implements hook_themes_uninstalled()

db_add_unique_key

db_add_unique_key($table, $name, $fields) Adds a unique key. Parameters $table: The table to be altered. $name: The name of the key. array $fields: An array of field names. 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 addUniqueKey() on it. For example, $injected_database->schema()->addUniqueKey($table, $name, $fields); See also \Drupal\Core\Database\Sch

ContextualLinkManagerInterface::getContextualLinksArrayByGroup

public ContextualLinkManagerInterface::getContextualLinksArrayByGroup($group_name, array $route_parameters, array $metadata = array()) Gets the contextual links prepared as expected by links.html.twig. Parameters string $group_name: The group name. array $route_parameters: The incoming route parameters. The route parameters need to have the same name on all contextual link routes, e.g. you cannot use 'node' and 'entity' in parallel. array $metadata: Additional metadata of contextual links, lik

db_field_set_default

db_field_set_default($table, $field, $default) Sets the default value for a field. Parameters $table: The table to be altered. $field: The field to be altered. $default: Default value to be set. NULL for 'default NULL'. 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 fieldSetDefault() on it. For example, $injected_database->schema()->fieldSetDefault($table,

ConfigurableLanguageManager::getFallbackCandidates

public ConfigurableLanguageManager::getFallbackCandidates(array $context = array()) Returns the language fallback candidates for a given context. Parameters array $context: (optional) An associative array of data that can be useful to determine the fallback sequence. The following keys are used in core: langcode: Language code of the desired language. operation: The name of the operation indicating the context where language fallback is being applied. The following operations are defined in

File::setSize

public File::setSize($size) Sets the size of the file. Parameters int $size: The size of the file in bytes. Overrides FileInterface::setSize File core/modules/file/src/Entity/File.php, line 101 Class File Defines the file entity class. Namespace Drupal\file\Entity Code public function setSize($size) { $this->get('filesize')->value = $size; }

RecursiveValidator::inContext

public RecursiveValidator::inContext(ExecutionContextInterface $context) Returns a validator in the given execution context. The returned validator adds all generated violations to the given context. Parameters ExecutionContextInterface $context The execution context: Return value ContextualValidatorInterface The validator for that context Overrides ValidatorInterface::inContext File core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php, line 61 Class RecursiveValidator Define

UserPermissionsForm::buildForm

public UserPermissionsForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. 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 array The form structure. Overrides FormInterface::buildForm File core/modules/user/src/Form/UserPermissionsForm.php, line 85 Class UserPermissionsForm Provides the user permissions administration form. Namespace

CronController::runManually

public CronController::runManually() Run cron manually. Return value \Symfony\Component\HttpFoundation\RedirectResponse A Symfony direct response object. File core/modules/system/src/CronController.php, line 59 Class CronController Controller for Cron handling. Namespace Drupal\system Code public function runManually() { if ($this->cron->run()) { drupal_set_message($this->t('Cron ran successfully.')); } else { drupal_set_message($this->t('Cron run failed.'),