public function getLanguagesForNode(NodeInterface $node)
{
$languages = [];
foreach ($node->getProperties() as $property) {
/* @var PropertyInterface $property */
preg_match('/^' . $this->languageNamespace . ':([a-zA-Z_]*?)-changer/', $property->getName(), $matches);
if ($matches) {
$languages[$matches[1]] = $matches[1];
}
}
return array_values($languages);
}