Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
|
@ -16,7 +16,7 @@ function rdf_help($route_name, RouteMatchInterface $route_match) {
|
|||
case 'help.page.rdf':
|
||||
$output = '';
|
||||
$output .= '<h3>' . t('About') . '</h3>';
|
||||
$output .= '<p>' . t('The RDF module enriches your content with metadata to let other applications (e.g., search engines, aggregators, and so on) better understand its relationships and attributes. This semantically enriched, machine-readable output for your website uses the <a href="!rdfa">RDFa specification</a>, which allows RDF data to be embedded in HTML markup. Other modules can define mappings of their data to RDF terms, and the RDF module makes this RDF data available to the theme. The core modules define RDF mappings for their data model, and the core themes output this RDF metadata information along with the human-readable visual information. For more information, see the <a href="!rdf">online documentation for the RDF module</a>.', array('!rdfa' => 'http://www.w3.org/TR/xhtml-rdfa-primer/', '!rdf' => 'https://www.drupal.org/documentation/modules/rdf')) . '</p>';
|
||||
$output .= '<p>' . t('The RDF module enriches your content with metadata to let other applications (e.g., search engines, aggregators, and so on) better understand its relationships and attributes. This semantically enriched, machine-readable output for your website uses the <a href=":rdfa">RDFa specification</a>, which allows RDF data to be embedded in HTML markup. Other modules can define mappings of their data to RDF terms, and the RDF module makes this RDF data available to the theme. The core modules define RDF mappings for their data model, and the core themes output this RDF metadata information along with the human-readable visual information. For more information, see the <a href=":rdf">online documentation for the RDF module</a>.', array(':rdfa' => 'http://www.w3.org/TR/xhtml-rdfa-primer/', ':rdf' => 'https://www.drupal.org/documentation/modules/rdf')) . '</p>';
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
@ -378,7 +378,7 @@ function rdf_preprocess_user(&$variables) {
|
|||
'#attributes' => array(
|
||||
'about' => $account->url(),
|
||||
'property' => $name_mapping['properties'],
|
||||
'content' => $account->getUsername(),
|
||||
'content' => $account->getDisplayName(),
|
||||
'lang' => '',
|
||||
),
|
||||
);
|
||||
|
|
|
@ -148,7 +148,7 @@ class RdfMapping extends ConfigEntityBase implements RdfMappingInterface {
|
|||
$bundle_config_dependency = $entity_type->getBundleConfigDependency($this->bundle);
|
||||
$this->addDependency($bundle_config_dependency['type'], $bundle_config_dependency['name']);
|
||||
|
||||
return $this->dependencies;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
namespace Drupal\rdf\Tests\Field;
|
||||
|
||||
use Drupal\entity_reference\Tests\EntityReferenceTestTrait;
|
||||
use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
|
||||
use Drupal\user\Entity\Role;
|
||||
use Drupal\user\RoleInterface;
|
||||
|
||||
|
@ -48,7 +48,7 @@ class EntityReferenceRdfaTest extends FieldRdfaTestBase {
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static $modules = array('entity_reference', 'text', 'filter');
|
||||
public static $modules = ['text', 'filter'];
|
||||
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
|
|
|
@ -92,7 +92,7 @@ class RdfMappingConfigEntityUnitTest extends UnitTestCase {
|
|||
->will($this->returnValue($this->entityType));
|
||||
|
||||
$entity = new RdfMapping($values, $this->entityTypeId);
|
||||
$dependencies = $entity->calculateDependencies();
|
||||
$dependencies = $entity->calculateDependencies()->getDependencies();
|
||||
$this->assertArrayNotHasKey('config', $dependencies);
|
||||
$this->assertContains('test_module', $dependencies['module']);
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ class RdfMappingConfigEntityUnitTest extends UnitTestCase {
|
|||
->will($this->returnValue($this->entityType));
|
||||
|
||||
$entity = new RdfMapping($values, $this->entityTypeId);
|
||||
$dependencies = $entity->calculateDependencies();
|
||||
$dependencies = $entity->calculateDependencies()->getDependencies();
|
||||
$this->assertContains('test_module.type.' . $bundle_id, $dependencies['config']);
|
||||
$this->assertContains('test_module', $dependencies['module']);
|
||||
}
|
||||
|
|
Reference in a new issue