Issue #2031115 by tim.plunkett: Fixed Language::LANGUAGE_DEFAULT should be Language::LANGCODE_DEFAULT.

8.0.x
Alex Pott 2013-06-29 11:34:03 +01:00
parent dc6aeae89c
commit 0c957d310a
4 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ class EntityAccessController implements EntityAccessControllerInterface {
/**
* {@inheritdoc}
*/
public function access(EntityInterface $entity, $operation, $langcode = Language::LANGUAGE_DEFAULT, AccountInterface $account = NULL) {
public function access(EntityInterface $entity, $operation, $langcode = Language::LANGCODE_DEFAULT, AccountInterface $account = NULL) {
if (!$account) {
$account = $GLOBALS['user'];
}

View File

@ -17,7 +17,7 @@ class ActionAccessController extends EntityAccessController {
/**
* {@inheritdoc}
*/
public function access(EntityInterface $entity, $operation, $langcode = Language::LANGUAGE_DEFAULT, AccountInterface $account = NULL) {
public function access(EntityInterface $entity, $operation, $langcode = Language::LANGCODE_DEFAULT, AccountInterface $account = NULL) {
return user_access('administer actions', $account);
}

View File

@ -20,7 +20,7 @@ class ConfigTestAccessController extends EntityAccessController {
/**
* {@inheritdoc}
*/
public function access(EntityInterface $entity, $operation, $langcode = Language::LANGUAGE_DEFAULT, AccountInterface $account = NULL) {
public function access(EntityInterface $entity, $operation, $langcode = Language::LANGCODE_DEFAULT, AccountInterface $account = NULL) {
return TRUE;
}

View File

@ -20,7 +20,7 @@ class ViewAccessController extends EntityAccessController {
/**
* {@inheritdoc}
*/
public function access(EntityInterface $entity, $operation, $langcode = Language::LANGUAGE_DEFAULT, AccountInterface $account = NULL) {
public function access(EntityInterface $entity, $operation, $langcode = Language::LANGCODE_DEFAULT, AccountInterface $account = NULL) {
return $operation == 'view' || user_access('administer views', $account);
}