Inpsyde\MultilingualPress\Asset\DebugAwareScript::add_data PHP Метод

add_data() публичный Метод

Makes the given data available for the script.
С версии: 3.0.0
public add_data ( string $object_name, array $data ) : static
$object_name string The name of the JavaScript variable holding the data.
$data array The data to be made available for the script.
Результат static Script instance.
    public function add_data($object_name, array $data)
    {
        $this->data[$object_name] = $data;
        return $this;
    }