src/Sulu/Component/Util/SuluNodeHelper.php
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);
    }
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);
    }
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 ) ; }
Return the languages that are currently registered on the
given PHPCR node.

@param NodeInterface $node

@return array
Return the languages that are currently registered on the given PHPCR node .