Search for ensure

  1. Search 7.x for ensure
  2. Search 8.9.x for ensure
  3. Search 10.3.x for ensure
  4. Search 11.x for ensure
  5. Other projects
Title Object type File name Summary
BatchStorage::ensureTableExists function core/lib/Drupal/Core/Batch/BatchStorage.php Check if the table exists and create it if not.
ClassLoaderTest::$apcuEnsureUniquePrefix property core/modules/system/tests/src/Functional/Module/ClassLoaderTest.php The flag to set 'apcu_ensure_unique_prefix' setting.
Composer::ensureHtaccess function core/lib/Drupal/Core/Composer/Composer.php Ensures that .htaccess and web.config files are present in Composer root.
ComposerDeprecationTest::testEnsureHtaccess function core/tests/Drupal/Tests/Core/Composer/ComposerDeprecationTest.php @covers ::ensureHtaccess[[api-linebreak]]
@group legacy
ComposerTest::testEnsureComposerVersion function core/tests/Drupal/Tests/Composer/ComposerTest.php Verify that Composer::ensureComposerVersion() doesn't break.
ComposerTest::testEnsurePhpConfiguredVersion function core/tests/Drupal/Tests/Composer/ComposerTest.php Ensure that the configured php version matches the minimum php version.
ComputedItemListTrait::ensureComputedValue function core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php Ensures that values are only computed once.
DatabaseBackend::ensureBinExists function core/lib/Drupal/Core/Cache/DatabaseBackend.php Check if the cache bin exists and create it if not.
DatabaseBackend::ensureTableExists function core/lib/Drupal/Core/Flood/DatabaseBackend.php Check if the flood table exists and create it if not.
DatabaseCacheTagsChecksum::ensureTableExists function core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php Check if the cache tags table exists and create it if not.
DatabaseLockBackend::ensureTableExists function core/lib/Drupal/Core/Lock/DatabaseLockBackend.php Check if the semaphore table exists and create it if not.
DatabaseQueue::ensureTableExists function core/lib/Drupal/Core/Queue/DatabaseQueue.php Check if the table exists and create it if not.
DatabaseStorage::ensureTableExists function core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php Check if the table exists and create it if not.
DatabaseStorage::ensureTableExists function core/lib/Drupal/Core/Config/DatabaseStorage.php Check if the config table exists and create it if not.
DatabaseTestBase::ensureSampleDataNull function core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php Sets up tables for NULL handling.
EntityDisplayWithLayoutInterface::ensureLayout function core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php Ensures this entity has a layout.
EntityListBuilder::ensureDestination function core/lib/Drupal/Core/Entity/EntityListBuilder.php Ensures that a destination is present on the given URL.
FieldLayoutEntityDisplayTrait::ensureLayout function core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php
FileStorage::ensureDirectory function core/lib/Drupal/Component/PhpStorage/FileStorage.php Ensures the directory exists, has the right permissions, and a .htaccess.
FileStorage::ensureStorage function core/lib/Drupal/Core/Config/FileStorage.php Check if the directory exists and create it if not.
FileSystemTest::testEnsureFileExistsBeforeCopy function core/tests/Drupal/KernelTests/Core/File/FileSystemTest.php @covers ::copy[[api-linebreak]]
FunctionalTestSetupTrait::$apcuEnsureUniquePrefix property core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php The flag to set 'apcu_ensure_unique_prefix' setting.
HtaccessWriter::ensure function core/lib/Drupal/Core/File/HtaccessWriter.php Creates a .htaccess file in each Drupal files directory if it is missing.
HtaccessWriterInterface::ensure function core/lib/Drupal/Core/File/HtaccessWriterInterface.php Creates a .htaccess file in each Drupal files directory if it is missing.
MatcherDumper::ensureTableExists function core/lib/Drupal/Core/Routing/MatcherDumper.php Checks if the tree table exists and create it if not.
MenuTreeStorage::ensureTableExists function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Checks if the tree table exists and create it if not.
MigrateSqlIdMapEnsureTablesTest class core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php Tests the SQL ID map plugin ensureTables() method.
MigrateSqlIdMapEnsureTablesTest.php file core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php
MigrateSqlIdMapEnsureTablesTest::$migrationConfiguration property core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php The migration configuration, initialized to set the ID and destination IDs.
MigrateSqlIdMapEnsureTablesTest::runEnsureTablesTest function core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php Actually run the test.
MigrateSqlIdMapEnsureTablesTest::testEnsureTablesExist function core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php Tests the ensureTables method when the tables exist.
MigrateSqlIdMapEnsureTablesTest::testEnsureTablesNotExist function core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php Tests the ensureTables method when the tables do not exist.
ModuleExtensionList::ensureRequiredDependencies function core/lib/Drupal/Core/Extension/ModuleExtensionList.php Marks dependencies of required modules as 'required', recursively.
PagerSelectExtender::ensureElement function core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php Ensure that there is an element associated with this query.
Renderer::ensureMarkupIsSafe function core/lib/Drupal/Core/Render/Renderer.php Escapes #plain_text or filters #markup as required.
Schema::ensureIdentifiersLength function core/modules/pgsql/src/Driver/Database/pgsql/Schema.php Make sure to limit identifiers according to PostgreSQL compiled in length.
Schema::ensureNotNullPrimaryKey function core/lib/Drupal/Core/Database/Schema.php Ensures that all the primary key fields are correctly defined.
SharedTempStore::ensureAnonymousSession function core/lib/Drupal/Core/TempStore/SharedTempStore.php Stores the owner in the session if the user is anonymous.
Sql::ensureTables function core/modules/migrate/src/Plugin/migrate/id_map/Sql.php Create the map and message tables if they don't already exist.
SqlTest::providerTestEnsureTables function core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php Provides data for testEnsureTables.
SqlTest::providerTestFailEnsureTables function core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php Provides data for testFailEnsureTables.
SqlTest::testEnsureTables function core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php Tests that ensureTables creates the migrate map table.
SqlTest::testFailEnsureTables function core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php Tests exception is thrown in ensureTables fails.
Tables::ensureEntityTable function core/lib/Drupal/Core/Entity/Query/Sql/Tables.php Joins the entity table, if necessary, and returns the alias for it.
Tables::ensureFieldTable function core/lib/Drupal/Core/Entity/Query/Sql/Tables.php Ensure the field table is joined if necessary.
TestSiteInstallCommand::ensureDirectory function core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php Ensures that the sites/simpletest directory exists and is writable.
TestSqlIdMap::ensureTables function core/modules/migrate/tests/src/Unit/TestSqlIdMap.php Create the map and message tables if they don't already exist.
UpdatePathTestTrait::ensureUpdatesToRun function core/tests/Drupal/Tests/UpdatePathTestTrait.php Installs the update_script_test module and makes an update available.
UserRegistrationResource::ensureAccountCanRegister function core/modules/user/src/Plugin/rest/resource/UserRegistrationResource.php Ensure the account can be registered in this request.

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