ProxyBuilder

Generates the string representation of the proxy service. Hierarchy class \Drupal\Component\ProxyBuilder\ProxyBuilder File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 8 Namespace Drupal\Component\ProxyBuilder Members Name Modifiers Type Description ProxyBuilder::build public function Builds a proxy class string. ProxyBuilder::buildConstructorMethod protected function Builds the constructor used to inject the actual service ID. ProxyBuilder::bu

ProjectInfo::processInfoList

ProjectInfo::processInfoList(array &$projects, array $list, $project_type, $status, array $additional_whitelist = array()) Populates an array of project data. This iterates over a list of the installed modules or themes and groups them by project and status. A few parts of this function assume that enabled modules and themes are always processed first, and if uninstalled modules or themes are being processed (there is a setting to control if uninstalled code should be included in the Availa

ProjectInfo::getProjectName

ProjectInfo::getProjectName(Extension $file) Determines what project a given file object belongs to. Parameters \Drupal\Core\Extension\Extension $file: An extension object. Return value string The canonical project short name. File core/lib/Drupal/Core/Utility/ProjectInfo.php, line 151 Class ProjectInfo Performs operations on drupal.org project data. Namespace Drupal\Core\Utility Code function getProjectName(Extension $file) { $project_name = ''; if (isset($file->info['project

ProjectInfo::filterProjectInfo

ProjectInfo::filterProjectInfo($info, $additional_whitelist = array()) Filters the project .info.yml data to only save attributes we need. Parameters array $info: Array of .info.yml file data as returned by \Drupal\Core\Extension\InfoParser. $additional_whitelist: (optional) Array of additional elements to be collected from the .info.yml file. Defaults to array(). Return value Array of .info.yml file data we need for the update manager. See also \Drupal\Core\Utility\ProjectInfo::processInfoL

ProjectInfo

Performs operations on drupal.org project data. Hierarchy class \Drupal\Core\Utility\ProjectInfo File core/lib/Drupal/Core/Utility/ProjectInfo.php, line 10 Namespace Drupal\Core\Utility Members Name Modifiers Type Description ProjectInfo::filterProjectInfo function Filters the project .info.yml data to only save attributes we need. ProjectInfo::getProjectName function Determines what project a given file object belongs to. ProjectInfo::processInfoList funct

progress-bar.html.twig

Default theme implementation for a progress bar. Note that the core Batch API uses this only for non-JavaScript batch jobs. Available variables: label: The label of the working task. percent: The percentage of the progress. message: A string containing information to be displayed. File core/modules/system/templates/progress-bar.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

ProfileTranslationHandler::hasPublishedStatus

protected ProfileTranslationHandler::hasPublishedStatus() Checks whether the entity type supports published status natively. Return value bool TRUE if metadata is natively supported, FALSE otherwise. Overrides ContentTranslationHandler::hasPublishedStatus File core/modules/user/src/ProfileTranslationHandler.php, line 17 Class ProfileTranslationHandler Defines the translation handler for users. Namespace Drupal\user Code protected function hasPublishedStatus() { // User status has no

ProfileTranslationHandler::hasCreatedTime

protected ProfileTranslationHandler::hasCreatedTime() Checks whether the entity type supports creation time natively. Return value bool TRUE if metadata is natively supported, FALSE otherwise. Overrides ContentTranslationHandler::hasCreatedTime File core/modules/user/src/ProfileTranslationHandler.php, line 25 Class ProfileTranslationHandler Defines the translation handler for users. Namespace Drupal\user Code protected function hasCreatedTime() { // User creation date has nothing to

ProfileTranslationHandler::entityFormSave

public ProfileTranslationHandler::entityFormSave(array $form, FormStateInterface $form_state) Form submission handler for ProfileTranslationHandler::entityFormAlter(). This handles the save action. See also \Drupal\Core\Entity\EntityForm::build() File core/modules/user/src/ProfileTranslationHandler.php, line 45 Class ProfileTranslationHandler Defines the translation handler for users. Namespace Drupal\user Code public function entityFormSave(array $form, FormStateInterface $form_state

ProfileTranslationHandler::entityFormAlter

public ProfileTranslationHandler::entityFormAlter(array &$form, FormStateInterface $form_state, EntityInterface $entity) Performs the needed alterations to the entity form. Parameters array $form: The entity form to be altered to provide the translation workflow. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\Core\Entity\EntityInterface $entity: The entity being created or edited. Overrides ContentTranslationHandler::entityFormAlter File core/modul