diff --git a/core/modules/node/lib/Drupal/node/Entity/NodeType.php b/core/modules/node/lib/Drupal/node/Entity/NodeType.php index 289dec8..67136b3 100644 --- a/core/modules/node/lib/Drupal/node/Entity/NodeType.php +++ b/core/modules/node/lib/Drupal/node/Entity/NodeType.php @@ -103,19 +103,6 @@ class NodeType extends ConfigEntityBase implements NodeTypeInterface { public $title_label = 'Title'; /** - * Indicates whether a Body field should be created for this node type. - * - * This property affects entity creation only. It allows default configuration - * of modules and installation profiles to specify whether a Body field should - * be created for this bundle. - * - * @var bool - * - * @see \Drupal\node\Entity\NodeType::$create_body_label - */ - protected $create_body = TRUE; - - /** * The label to use for the Body field upon entity creation. * * @see \Drupal\node\Entity\NodeType::$create_body @@ -170,8 +157,8 @@ public function postSave(EntityStorageControllerInterface $storage_controller, $ entity_invoke_bundle_hook('create', 'node', $this->id()); - // Automatically create a Body field for new node types if - // we're not in the syncing process. + // Automatically create a body field for new node types if not in the + // syncing process. if (!$this->isSyncing()) { $label = $this->get('create_body_label'); node_add_body_field($this, $label); diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php index 80d93a1..84bfde1 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php @@ -139,6 +139,14 @@ class ViewUI implements ViewStorageInterface { ); /** + * Whether the config is being created, updated or deleted through the + * import process. + * + * @var bool + */ + private $isSyncing = FALSE; + + /** * Constructs a View UI object. * * @param \Drupal\views\ViewStorageInterface $storage @@ -188,6 +196,20 @@ public static function getDefaultAJAXMessage() { } /** + * {@inheritdoc} + */ + public function setSyncing($syncing) { + $this->isSyncing = $syncing; + } + + /** + * {@inheritdoc} + */ + public function isSyncing() { + return $this->isSyncing; + } + + /** * Basic submit handler applicable to all 'standard' forms. * * This submit handler determines whether the user wants the submitted changes