public function Meta::getMetasForUrlAndLanguage in Easymeta 8
Retrieve Meta from $url and $language.
1 call to Meta::getMetasForUrlAndLanguage()
- Meta::__construct in src/
Meta.php - Construct method.
File
- src/
Meta.php, line 136
Class
- Meta
- Meta Class.
Namespace
Drupal\easymetaCode
public function getMetasForUrlAndLanguage($url, $language) {
$query = \Drupal::database()
->select('easymeta', 'em');
$query
->fields('em');
$query
->condition('url', $url);
$query
->condition('language', $language);
return $query
->execute()
->fetch();
}