Commit d6125585 authored by alexpott's avatar alexpott

Issue #2387781 by dixon_: Fix camel case for method in EntityStorageInterface

parent 0bb57ed2
......@@ -334,9 +334,9 @@ protected function invokeHook($hook, EntityInterface $entity) {
}
/**
* Implements Drupal\Core\Entity\EntityStorageInterface::getQueryServicename().
* Implements Drupal\Core\Entity\EntityStorageInterface::getQueryServiceName().
*/
public function getQueryServicename() {
public function getQueryServiceName() {
return 'entity.query.config';
}
......
......@@ -153,7 +153,7 @@ public function save(EntityInterface $entity);
* @return string
* The name of the service for the query for this entity storage.
*/
public function getQueryServicename();
public function getQueryServiceName();
/**
* Returns an entity query instance.
......@@ -166,7 +166,7 @@ public function getQueryServicename();
* @return \Drupal\Core\Entity\Query\QueryInterface
* The query instance.
*
* @see \Drupal\Core\Entity\EntityStorageInterface::getQueryServicename()
* @see \Drupal\Core\Entity\EntityStorageInterface::getQueryServiceName()
*/
public function getQuery($conjunction = 'AND');
......
......@@ -202,7 +202,7 @@ protected function has($id, EntityInterface $entity) {
/**
* {@inheritdoc}
*/
public function getQueryServicename() {
public function getQueryServiceName() {
return 'entity.query.keyvalue';
}
......
......@@ -48,7 +48,7 @@ public function __construct(EntityManagerInterface $entity_manager) {
* The query object that can query the given entity type.
*/
public function get($entity_type_id, $conjunction = 'AND') {
$service_name = $this->entityManager->getStorage($entity_type_id)->getQueryServicename();
$service_name = $this->entityManager->getStorage($entity_type_id)->getQueryServiceName();
return $this->container->get($service_name)->get($this->entityManager->getDefinition($entity_type_id), $conjunction);
}
......@@ -65,7 +65,7 @@ public function get($entity_type_id, $conjunction = 'AND') {
* The aggregated query object that can query the given entity type.
*/
public function getAggregate($entity_type_id, $conjunction = 'AND') {
$service_name = $this->entityManager->getStorage($entity_type_id)->getQueryServicename();
$service_name = $this->entityManager->getStorage($entity_type_id)->getQueryServiceName();
return $this->container->get($service_name)->getAggregate($this->entityManager->getDefinition($entity_type_id), $conjunction);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment