/dports/www/drupal8/drupal-8.9.20/core/modules/block_content/tests/modules/block_content_test/ |
H A D | block_content_test.module | 28 $block_content->setInfo($block_content->label() . '_presave'); 31 if (!empty($block_content->original) && $block_content->original->label() == 'test_changes') { 32 if ($block_content->original->label() != $block_content->label()) { 33 $block_content->setInfo($block_content->label() . '_presave'); 45 if (!empty($block_content->original) && $block_content->original->label() == 'test_changes') { 46 if ($block_content->original->label() != $block_content->label()) { 47 $block_content->setInfo($block_content->label() . '_update'); 55 * This tests saving a block_content on block_content insert. 60 // Set the block_content title to the block_content ID and save. 62 $block_content->setInfo('BlockContent ' . $block_content->id()); [all …]
|
/dports/www/drupal9/drupal-9.2.10/core/modules/block_content/tests/modules/block_content_test/ |
H A D | block_content_test.module | 28 $block_content->setInfo($block_content->label() . '_presave'); 31 if (!empty($block_content->original) && $block_content->original->label() == 'test_changes') { 32 if ($block_content->original->label() != $block_content->label()) { 33 $block_content->setInfo($block_content->label() . '_presave'); 45 if (!empty($block_content->original) && $block_content->original->label() == 'test_changes') { 46 if ($block_content->original->label() != $block_content->label()) { 47 $block_content->setInfo($block_content->label() . '_update'); 55 * This tests saving a block_content on block_content insert. 60 // Set the block_content title to the block_content ID and save. 62 $block_content->setInfo('BlockContent ' . $block_content->id()); [all …]
|
/dports/www/drupal8/drupal-8.9.20/core/modules/block_content/ |
H A D | block_content.routing.yml | 1 block_content.add_page: 11 block_content.add_form: 21 entity.block_content.canonical: 22 path: '/block/{block_content}' 29 block_content: \d+ 31 entity.block_content.edit_form: 32 path: '/block/{block_content}' 39 block_content: \d+ 50 block_content: \d+ 52 block_content.type_add: [all …]
|
H A D | block_content.links.task.yml | 1 entity.block_content.collection: 3 route_name: entity.block_content.collection 5 block_content.list_sub: 7 route_name: entity.block_content.collection 8 parent_id: entity.block_content.collection 12 parent_id: entity.block_content.collection 15 entity.block_content.canonical: 17 route_name: entity.block_content.canonical 18 base_route: entity.block_content.canonical 19 entity.block_content.delete_form: [all …]
|
H A D | block_content.install | 5 * Install, update and uninstall functions for the block_content module. 12 * Add 'revision_translation_affected' field to 'block_content' entities. 16 // \Drupal\block_content\Entity\BlockContent::baseFieldDefinitions() 30 …tallFieldStorageDefinition('revision_translation_affected', 'block_content', 'block_content', $sto… 54 …->installFieldStorageDefinition('revision_created', 'block_content', 'block_content', $revision_cr… 63 …->installFieldStorageDefinition('revision_user', 'block_content', 'block_content', $revision_user); 77 * Add a publishing status field for block_content entities. 82 // Add the published entity key to the block_content entity type. 104 …ion_update_manager->installFieldStorageDefinition('status', 'block_content', 'block_content', $sta… 127 * Add 'reusable' field to 'block_content' entities. [all …]
|
/dports/www/drupal9/drupal-9.2.10/core/modules/block_content/ |
H A D | block_content.routing.yml | 1 block_content.add_page: 11 block_content.add_form: 21 entity.block_content.canonical: 22 path: '/block/{block_content}' 29 block_content: \d+ 31 entity.block_content.edit_form: 32 path: '/block/{block_content}' 39 block_content: \d+ 50 block_content: \d+ 52 block_content.type_add: [all …]
|
H A D | block_content.links.task.yml | 1 entity.block_content.collection: 3 route_name: entity.block_content.collection 5 block_content.list_sub: 7 route_name: entity.block_content.collection 8 parent_id: entity.block_content.collection 12 parent_id: entity.block_content.collection 15 entity.block_content.canonical: 17 route_name: entity.block_content.canonical 18 base_route: entity.block_content.canonical 19 entity.block_content.delete_form: [all …]
|
/dports/www/drupal8/drupal-8.9.20/core/modules/block_content/tests/src/Functional/ |
H A D | UnpublishedBlockTest.php | 3 namespace Drupal\Tests\block_content\Functional; 5 use Drupal\block_content\Entity\BlockContent; 32 $block_content = BlockContent::create([ 36 $block_content->save(); 38 $this->placeBlock('block_content:' . $block_content->uuid()); 42 $this->assertTrue($page->has('css', '.block-block-content' . $block_content->uuid())); 44 $block_content->setUnpublished(); 45 $block_content->save(); 49 $this->assertFalse($page->has('css', '.block-block-content' . $block_content->uuid()));
|
H A D | BlockContentTestBase.php | 3 namespace Drupal\Tests\block_content\Functional; 5 use Drupal\block_content\Entity\BlockContent; 6 use Drupal\block_content\Entity\BlockContentType; 80 $block_content = BlockContent::create([ 85 if ($block_content && $save === TRUE) { 86 $block_content->save(); 88 return $block_content;
|
/dports/www/drupal9/drupal-9.2.10/core/modules/block_content/tests/src/Functional/ |
H A D | UnpublishedBlockTest.php | 3 namespace Drupal\Tests\block_content\Functional; 5 use Drupal\block_content\Entity\BlockContent; 32 $block_content = BlockContent::create([ 36 $block_content->save(); 38 $this->placeBlock('block_content:' . $block_content->uuid()); 42 $this->assertTrue($page->has('css', '.block-block-content' . $block_content->uuid())); 44 $block_content->setUnpublished(); 45 $block_content->save(); 49 $this->assertFalse($page->has('css', '.block-block-content' . $block_content->uuid()));
|
/dports/chinese/wordpress-zh_TW/wordpress/wp-includes/block-supports/ |
H A D | layout.php | 38 * @param string $block_content Rendered block content. 42 function wp_render_layout_support_flag( $block_content, $block ) { argument 46 return $block_content; 54 return $block_content; 91 $block_content, 115 * @param string $block_content Rendered block content. 120 function wp_restore_group_inner_container( $block_content, $block ) { argument 126 1 === preg_match( $group_with_inner_container_regex, $block_content ) 128 return $block_content; 137 $block_content
|
/dports/chinese/wordpress-zh_CN/wordpress/wp-includes/block-supports/ |
H A D | layout.php | 38 * @param string $block_content Rendered block content. 42 function wp_render_layout_support_flag( $block_content, $block ) { argument 46 return $block_content; 54 return $block_content; 91 $block_content, 115 * @param string $block_content Rendered block content. 120 function wp_restore_group_inner_container( $block_content, $block ) { argument 126 1 === preg_match( $group_with_inner_container_regex, $block_content ) 128 return $block_content; 137 $block_content
|
/dports/www/drupal8/drupal-8.9.20/core/modules/block_content/tests/src/Kernel/ |
H A D | BlockContentDeriverTest.php | 3 namespace Drupal\Tests\block_content\Kernel; 5 use Drupal\block_content\Entity\BlockContent; 6 use Drupal\block_content\Entity\BlockContentType; 43 $block_content = BlockContent::create([ 47 $block_content->save(); 53 $plugin_id = 'block_content' . PluginBase::DERIVATIVE_SEPARATOR . $block_content->uuid(); 57 $block_content->setNonReusable(); 58 $block_content->save();
|
H A D | BlockContentDeletionTest.php | 3 namespace Drupal\Tests\block_content\Kernel; 5 use Drupal\block_content\Entity\BlockContent; 6 use Drupal\block_content\Entity\BlockContentType; 43 $block_content = BlockContent::create([ 47 $block_content->save(); 53 $plugin_id = 'block_content' . PluginBase::DERIVATIVE_SEPARATOR . $block_content->uuid(); 57 $block_content->delete();
|
/dports/www/drupal9/drupal-9.2.10/core/modules/block_content/tests/src/Kernel/ |
H A D | BlockContentDeriverTest.php | 3 namespace Drupal\Tests\block_content\Kernel; 5 use Drupal\block_content\Entity\BlockContent; 6 use Drupal\block_content\Entity\BlockContentType; 43 $block_content = BlockContent::create([ 47 $block_content->save(); 53 $plugin_id = 'block_content' . PluginBase::DERIVATIVE_SEPARATOR . $block_content->uuid(); 57 $block_content->setNonReusable(); 58 $block_content->save();
|
H A D | BlockContentDeletionTest.php | 3 namespace Drupal\Tests\block_content\Kernel; 5 use Drupal\block_content\Entity\BlockContent; 6 use Drupal\block_content\Entity\BlockContentType; 43 $block_content = BlockContent::create([ 47 $block_content->save(); 53 $plugin_id = 'block_content' . PluginBase::DERIVATIVE_SEPARATOR . $block_content->uuid(); 57 $block_content->delete();
|
/dports/chinese/wordpress-zh_TW/wordpress/wp-includes/ |
H A D | class-wp-block.php | 204 $block_content = ''; 209 $block_content .= is_string( $chunk ) ? 221 …$block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $… 241 * @param string $block_content The block content about to be appended. 244 $block_content = apply_filters( 'render_block', $block_content, $this->parsed_block ); 254 * @param string $block_content The block content about to be appended. 257 …$block_content = apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block … 259 return $block_content;
|
/dports/chinese/wordpress-zh_CN/wordpress/wp-includes/ |
H A D | class-wp-block.php | 204 $block_content = ''; 209 $block_content .= is_string( $chunk ) ? 221 …$block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $… 241 * @param string $block_content The block content about to be appended. 244 $block_content = apply_filters( 'render_block', $block_content, $this->parsed_block ); 254 * @param string $block_content The block content about to be appended. 257 …$block_content = apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block … 259 return $block_content;
|
/dports/www/drupal8/drupal-8.9.20/core/modules/block_content/tests/src/Kernel/Views/ |
H A D | RevisionRelationshipsTest.php | 3 namespace Drupal\Tests\block_content\Kernel\Views; 5 use Drupal\block_content\Entity\BlockContent; 6 use Drupal\block_content\Entity\BlockContentType; 54 $block_content = BlockContent::create([ 59 $block_content->save(); 61 $block_content_revision = clone $block_content; 72 $view->preview(NULL, [$block_content->id()]); 89 $view_revision->preview(NULL, [$block_content->id()]);
|
/dports/www/drupal9/drupal-9.2.10/core/modules/block_content/tests/src/Kernel/Views/ |
H A D | RevisionRelationshipsTest.php | 3 namespace Drupal\Tests\block_content\Kernel\Views; 5 use Drupal\block_content\Entity\BlockContent; 6 use Drupal\block_content\Entity\BlockContentType; 54 $block_content = BlockContent::create([ 59 $block_content->save(); 61 $block_content_revision = clone $block_content; 72 $view->preview(NULL, [$block_content->id()]); 89 $view_revision->preview(NULL, [$block_content->id()]);
|
H A D | RevisionUserTest.php | 3 namespace Drupal\Tests\block_content\Kernel\Views; 5 use Drupal\block_content\Entity\BlockContent; 6 use Drupal\block_content\Entity\BlockContentType; 79 $block_content = BlockContent::create([ 83 $block_content->setRevisionUserId($primary_author->id()); 84 $block_content->save(); 97 $block_content->setRevisionUser($secondary_author); 98 $block_content->setNewRevision(); 99 $block_content->save();
|
/dports/www/drupal8/drupal-8.9.20/core/modules/block_content/src/Plugin/Derivative/ |
H A D | BlockContent.php | 3 namespace Drupal\block_content\Plugin\Derivative; 50 foreach ($block_contents as $block_content) { 51 $this->derivatives[$block_content->uuid()] = $base_plugin_definition; 52 $this->derivatives[$block_content->uuid()]['admin_label'] = $block_content->label(); 53 $this->derivatives[$block_content->uuid()]['config_dependencies']['content'] = [ 54 $block_content->getConfigDependencyName(),
|
/dports/www/drupal9/drupal-9.2.10/core/modules/block_content/src/Plugin/Derivative/ |
H A D | BlockContent.php | 3 namespace Drupal\block_content\Plugin\Derivative; 50 foreach ($block_contents as $block_content) { 51 $this->derivatives[$block_content->uuid()] = $base_plugin_definition; 52 $this->derivatives[$block_content->uuid()]['admin_label'] = $block_content->label(); 53 $this->derivatives[$block_content->uuid()]['config_dependencies']['content'] = [ 54 $block_content->getConfigDependencyName(),
|
/dports/www/drupal8/drupal-8.9.20/core/modules/layout_builder/src/EventSubscriber/ |
H A D | SetInlineBlockDependency.php | 5 use Drupal\block_content\BlockContentEvents; 6 use Drupal\block_content\BlockContentInterface; 7 use Drupal\block_content\Event\BlockContentGetDependencyEvent; 125 protected function getInlineBlockDependency(BlockContentInterface $block_content) { argument 126 $layout_entity_info = $this->usage->getUsage($block_content->id()); 135 if ($this->isBlockRevisionUsedInEntity($layout_entity, $block_content)) { 155 …isBlockRevisionUsedInEntity(EntityInterface $layout_entity, BlockContentInterface $block_content) { argument 157 return in_array($block_content->getRevisionId(), $sections_blocks_revision_ids);
|
/dports/www/drupal9/drupal-9.2.10/core/modules/layout_builder/src/EventSubscriber/ |
H A D | SetInlineBlockDependency.php | 5 use Drupal\block_content\BlockContentEvents; 6 use Drupal\block_content\BlockContentInterface; 7 use Drupal\block_content\Event\BlockContentGetDependencyEvent; 125 protected function getInlineBlockDependency(BlockContentInterface $block_content) { argument 126 $layout_entity_info = $this->usage->getUsage($block_content->id()); 135 if ($this->isBlockRevisionUsedInEntity($layout_entity, $block_content)) { 155 …isBlockRevisionUsedInEntity(EntityInterface $layout_entity, BlockContentInterface $block_content) { argument 157 return in_array($block_content->getRevisionId(), $sections_blocks_revision_ids);
|