returnt('The publishing status field has <strong>not</strong> been added to taxonomy terms. See <a href=":link">this page</a> for more information on how to install it.',[
$message=\Drupal::state()->get('taxonomy_update_8601_skip_message',t('The publishing status field has <strong>not</strong> been added to taxonomy terms. See <a href=":link">this page</a> for more information on how to install it.',[
':link'=>'https://www.drupal.org/node/2985366',
]);
]));
return$message;
}
// Add the 'published' entity key to the taxonomy_term entity type.
@@ -80,6 +80,13 @@ public function testPublishable() {
$term->save();
$term=$storage->loadUnchanged($term->id());
$this->assertFalse($term->isPublished());
// Test the update does not run when a status field already exists.
module_load_install('taxonomy');
$this->assertEquals('The publishing status field has <strong>not</strong> been added to taxonomy terms. See <a href="https://www.drupal.org/node/2985366">this page</a> for more information on how to install it.',(string)taxonomy_update_8601());