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 10.3.x for generate
  5. Other projects
Title Object type File name Summary
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.
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::generate function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Generates a hash that uniquely identifies a user's permissions.
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 Generates a Universally Unique IDentifier (UUID).
PlaceholderGeneratorTest::providerCreatePlaceholderGeneratesValidHtmlMarkup function core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php
PlaceholderGeneratorTest::testCreatePlaceholderGeneratesValidHtmlMarkup function core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php Ensure that the generated placeholder markup is valid.
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
SessionTest::testSessionSaveRegenerate function core/modules/system/tests/src/Functional/Session/SessionTest.php Tests session writing and regeneration.
SessionTestTrait::generateSessionName function core/tests/Drupal/Tests/SessionTestTrait.php Generates a session cookie name.
ShortcutTestBase::generateShortcutSet function core/modules/shortcut/tests/src/Functional/ShortcutTestBase.php Creates a generic shortcut set.
SkipOp::generateContents function composer/Plugin/Scaffold/Operations/SkipOp.php Load the scaffold contents or otherwise generate what is needed.
StatusItem::generateSampleValue function core/modules/user/src/StatusItem.php Generates placeholder field values.
StatusMessages::generatePlaceholder function core/lib/Drupal/Core/Render/Element/StatusMessages.php #pre_render callback to generate a placeholder.
StorageComparerTest::generateRandomData function core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php Generate random data in a config storage.
StorageCopyTraitTest::generateRandomData function core/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php Generate random data in a config storage.

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