Version 1
[yaffs-website] / vendor / drupal / console / src / Command / Shared / TranslationTrait.php
diff --git a/vendor/drupal/console/src/Command/Shared/TranslationTrait.php b/vendor/drupal/console/src/Command/Shared/TranslationTrait.php
new file mode 100644 (file)
index 0000000..8648cf9
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+/**
+ * @file
+ * Contains Drupal\Console\Command\Shared\TranslationTrait.
+ */
+
+namespace Drupal\Console\Command\Shared;
+
+use Drupal\Console\Core\Style\DrupalStyle;
+
+trait TranslationTrait
+{
+    /**
+     * @param string $value
+     *
+     * @return mixed
+     */
+    protected function isYamlKey($value)
+    {
+        if (!strstr($value, ' ') && strstr($value, '.')) {
+            return true;
+        }
+
+        return false;
+    }
+}