Search for generate

  1. Search 7.x for generate
  2. Search 8.9.x for generate
  3. Search 10.3.x for generate
  4. Search 11.x for generate
  5. Other projects
Title Object type File name Summary
ImageItem::generateSampleValue function core/modules/image/src/Plugin/Field/FieldType/ImageItem.php Generates placeholder field values.
IntegerItem::generateSampleValue function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/IntegerItem.php Generates placeholder field values.
Internal::generateACFSettings function core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php Builds the ACF part of the CKEditor JS settings.
Internal::generateFormatTagsSetting function core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php Builds the "format_tags" configuration part of the CKEditor JS settings.
JsCollectionOptimizer::generateHash function core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php Generate a hash for a given group of JavaScript assets.
LanguageItem::generateSampleValue function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php Generates placeholder field values.
LayoutSectionItem::generateSampleValue function core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php Generates placeholder field values.
LinkGenerator::doGenerate function core/lib/Drupal/Core/Utility/LinkGenerator.php Generates the link.
LinkGenerator::generate function core/lib/Drupal/Core/Utility/LinkGenerator.php For anonymous users, the "active" class will be calculated on the server,
because most sites serve each anonymous user the same cached page anyway.
For authenticated users, the "active" class will be calculated on the
client…
LinkGenerator::generateFromLink function core/lib/Drupal/Core/Utility/LinkGenerator.php Renders a link from a link object.
LinkGeneratorInterface::generate function core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php Renders a link to a URL.
LinkGeneratorInterface::generateFromLink function core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php Renders a link from a link object.
LinkGeneratorTest::providerTestGenerateHrefs function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Provides test data for testing the link method.
LinkGeneratorTest::testGenerate function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with a route.
LinkGeneratorTest::testGenerateActive function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the active class on the link method.
LinkGeneratorTest::testGenerateAttributes function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with additional attributes.
LinkGeneratorTest::testGenerateBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the LinkGenerator's support for collecting bubbleable metadata.
LinkGeneratorTest::testGenerateButton function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with the <button> route.
LinkGeneratorTest::testGenerateExternal function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with an external URL.
LinkGeneratorTest::testGenerateHrefs function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with certain hrefs.
LinkGeneratorTest::testGenerateNoLink function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with the <nolink> route.
LinkGeneratorTest::testGenerateNone function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with the <none> route.
LinkGeneratorTest::testGenerateOptions function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with arbitrary passed options.
LinkGeneratorTest::testGenerateParametersAsQuery function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with passed query options via parameters.
LinkGeneratorTest::testGenerateQuery function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with passed query options.
LinkGeneratorTest::testGenerateTwice function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests whether rendering the same link twice works.
LinkGeneratorTest::testGenerateUrlWithQuotes function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the generate() method with a URL containing double quotes.
LinkGeneratorTest::testGenerateWithAlterHook function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests altering the URL object using hook_link_alter().
LinkGeneratorTest::testGenerateWithHtml function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with html.
LinkGeneratorTest::testGenerateXss function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Tests the link method with a script tab.
LinkItem::generateSampleValue function core/modules/link/src/Plugin/Field/FieldType/LinkItem.php Generates placeholder field values.
ListItemBase::generateSampleValue function core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php Generates placeholder field values.
MediaKernelTestBase::generateMedia function core/modules/media/tests/src/Kernel/MediaKernelTestBase.php Helper to generate a media item.
MetadataBubblingUrlGenerator::generate function core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php
MetadataBubblingUrlGenerator::generateFromRoute function core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php Generates a URL or path for a specific route based on the given parameters.
MetadataGenerator::generateEntityMetadata function core/modules/quickedit/src/MetadataGenerator.php Generates in-place editing metadata for an entity.
MetadataGenerator::generateFieldMetadata function core/modules/quickedit/src/MetadataGenerator.php Generates in-place editing metadata for an entity field.
MetadataGeneratorInterface::generateEntityMetadata function core/modules/quickedit/src/MetadataGeneratorInterface.php Generates in-place editing metadata for an entity.
MetadataGeneratorInterface::generateFieldMetadata function core/modules/quickedit/src/MetadataGeneratorInterface.php Generates in-place editing metadata for an entity field.
MigrationWithFollowUpInterface::generateFollowUpMigrations function core/modules/migrate_drupal/src/Plugin/MigrationWithFollowUpInterface.php Generates follow-up migrations.
ModerationStateFieldItemList::generateSampleItems function core/modules/content_moderation/src/Plugin/Field/ModerationStateFieldItemList.php Populates a specified number of field items with valid sample data.
OptionsFieldTest::testGenerateSampleItemsWithNoAllowedValues function core/modules/options/tests/src/Kernel/OptionsFieldTest.php Tests that ::generateSampleItems does not fail with empty allowed values.
PackageGenerator::$generatedProjectBaseDir property composer/Generator/PackageGenerator.php Base directory where generated projects are written.
PackageGenerator::generate function composer/Generator/PackageGenerator.php Generate Drupal's metapackages whenever composer.lock is updated.
PackageGenerator::generateMetapackage function composer/Generator/PackageGenerator.php Generate one metapackage.
PasswordGeneratorInterface::generate function core/lib/Drupal/Core/Password/PasswordGeneratorInterface.php Generates a password.
PathItem::generateSampleValue function core/modules/path/src/Plugin/Field/FieldType/PathItem.php Generates placeholder field values.
Pecl::generate function core/lib/Drupal/Component/Uuid/Pecl.php Generates a Universally Unique IDentifier (UUID).
PermissionsHashGenerator::doGenerate function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Generates a hash that uniquely identifies the user's permissions.
PermissionsHashGenerator::generate function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Cached by role, invalidated whenever permissions change.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.