Search for generate

  1. Search 7.x for generate
  2. Search 9.5.x for generate
  3. Search 8.9.x for generate
  4. Search 11.x for generate
  5. Other projects
Title Object type File name Summary
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
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
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
PermissionsHashGeneratorInterface::generate function core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php Generates a hash that uniquely identifies a user's permissions.
PermissionsHashGeneratorTest::testGenerateAdmin function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php Tests the generate method for admin users.
PermissionsHashGeneratorTest::testGenerateCache function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php Tests the generate method's caching.
PermissionsHashGeneratorTest::testGenerateNoAccessPolicies function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php Tests the generate method with no access policies.
PermissionsHashGeneratorTest::testGenerateRegular function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php Tests the generate method for regular accounts.
Php::generate function core/lib/Drupal/Component/Uuid/Php.php
PhpassHashedPasswordBase::generateSalt function core/lib/Drupal/Core/Password/PhpassHashedPasswordBase.php Generates a random base 64-encoded salt prefixed with hash settings.
PlaceholderGeneratorTest::providerCreatePlaceholderGeneratesValidHtmlMarkup function core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php
PlaceholderGeneratorTest::testCreatePlaceholderGeneratesValidHtmlMarkup function core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php @covers ::createPlaceholder
@dataProvider providerCreatePlaceholderGeneratesValidHtmlMarkup
RandomTest::$firstStringGenerated property core/tests/Drupal/Tests/Component/Utility/RandomTest.php The first random string passed to the test callback.
RecipeConfigStorageWrapperTest::generateStorages function core/tests/Drupal/Tests/Core/Recipe/RecipeConfigStorageWrapperTest.php Generate two storages where the second storage should return a value.
RendererPlaceholdersTest::generatePlaceholderElement function core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php Generates an element with a placeholder.
RendererPlaceholdersTest::generatePlaceholdersWithChildrenTestElement function core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php Generates an element with placeholders at 3 levels.
RendererPlaceholdersTest::generatePlaceholderWithLazyBuilderPreview function core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php Generates an element with a lazy builder and preview.
ReplaceOp::generateContents function composer/Plugin/Scaffold/Operations/ReplaceOp.php Load the scaffold contents or otherwise generate what is needed.
ResourceObjectNormalizationCacher::generateCacheKeys function core/modules/jsonapi/src/EventSubscriber/ResourceObjectNormalizationCacher.php Generates the cache keys for a normalization.
ResourceResponseSubscriber::generateContext function core/modules/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php Generates a top-level JSON:API normalization context.
ResourceResponseSubscriberTest::generateRouteRequirements function core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php Generates route requirements based on supported formats.
ReverseContainer::generateServiceIdHash function core/lib/Drupal/Component/DependencyInjection/ReverseContainer.php Generates an identifier for a service based on the object class and hash.
Router::generate function core/lib/Drupal/Core/Routing/Router.php This method is intentionally not implemented.
RouterUnsupportedTest::testGenerateUnsupported function core/tests/Drupal/Tests/Core/Routing/RouterUnsupportedTest.php @covers ::generate
SchemaTest::testGeneratedInvisiblePrimaryKey function core/modules/mysql/tests/src/Kernel/mysql/SchemaTest.php Tests adding a primary key when sql_generate_invisible_primary_key is on.
ServiceIdHashTrait::generateServiceIdHash function core/lib/Drupal/Component/DependencyInjection/ServiceIdHashTrait.php Implements \Drupal\Component\DependencyInjection\ContainerInterface::generateServiceIdHash()
SessionConfigurationTest::providerTestGeneratedCookieDomain function core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php Data provider for the cookie domain test.
SessionConfigurationTest::providerTestGeneratedSessionName function core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php Data provider for the cookie name test.
SessionConfigurationTest::testGeneratedCookieDomain function core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php Tests whether the session.cookie_domain ini settings is computed correctly.
SessionConfigurationTest::testGeneratedSessionName function core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php Tests whether the session.name ini settings is computed correctly.
SessionManager::regenerate function core/lib/Drupal/Core/Session/SessionManager.php

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