Skip to content

Commit

Permalink
fixed some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Anderson committed Apr 25, 2017
1 parent 9e32ebd commit 17f7238
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
8 changes: 6 additions & 2 deletions content/slide-050.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
- Properties are stored on the entity's table and fields are stored in their own table.
---

### Entities

::: slide

### Entities

Entities are things in Drupal; things do not have to be nodes.

>>> notes
Expand All @@ -38,6 +38,8 @@ Entities are things in Drupal; things do not have to be nodes.

::: slide

#### Bundles

- A bundle is a collection of fields instances on an Entity
- A field instance is a place for complex data in a Entity Bundle
- A property is simple storage for Entity level data
Expand All @@ -56,6 +58,8 @@ Entities are things in Drupal; things do not have to be nodes.
::: slide

#### Properties

Properties are linked to an Entity, such as Node. Fields are linked to the Bundle, such as Content Type.

Properties are stored on the entity's table and fields are stored in their own table.
Expand Down
8 changes: 2 additions & 6 deletions content/slide-090.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
call_user_func("_component_{$bundle}_alter", array(&$build));
}
}
}
```

>>> notes
Expand All @@ -63,14 +62,11 @@ function _component_text_response_alter(&$build) {
$entity_form_name = 'text_submissions';
$component_id = $build[0]['#entity']->item_id;
$entity = $build[0]['#entity'];
$form = _npo_get_entityform(entityform_empty_load($entity_form_name), array('component_id' => $component_id, 'entity' => $entity));
$form = _get_entityform(entityform_empty_load($entity_form_name), array('component_id' => $component_id, 'entity' => $entity));
$form['field_component_submission']['#attributes']['class'][] = 'element-invisible';
$form['field_component_submission']['#attributes']['data-entityform-id'] = $build[0]['#entity']->item_id;
$form['field_text_response_submission']['#attributes']['class'][] = 'component-text-response-textarea';
$form['field_text_response_submission']['#attributes']['class'][] = 'component-input';
// ... Other Stuff ...
$form['field_text_response_submission']['#attributes']['class'][] = 'component-input-no-label';
$form_rendered = drupal_render($form);
// $build must be an array so that it can be passed by reference.
$build[0][] = array(
'#type' => 'markup',
'#markup' => $form_rendered,
Expand Down
5 changes: 4 additions & 1 deletion content/slide-130.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- EntityForm is not supported on Drupal 8
- There is a discussion about whither or not this module is necessary. I of corse believe the module is necessary. However, this doesn't make the module stable today. The module works well enough for this experiment, but if this where a full client project we would have to explore some options.
- Find an alternative
- Custom Entities are an option
- Comment module
- Contact module extras
- Relation module
Expand Down Expand Up @@ -41,16 +42,18 @@
- Big problem
- EntityForm is not supported on Drupal 8
- Find an alternative
- Custom Entity
- Comment module
- Contact module extras
- Relation module
- Fund the development of a stable release
- Fund the development of a stable release

>>> notes
- Big problem with my re-architecture exercise.
- EntityForm is not supported on Drupal 8
- There is a discussion about whither or not this module is necessary. I of corse believe the module is necessary. However, this doesn't make the module stable today. The module works well enough for this experiment, but if this where a full client project we would have to explore some options.
- Find an alternative
- Custom Entities are an option
- Comment module
- Contact module extras
- Relation module
Expand Down
2 changes: 1 addition & 1 deletion content/slide-170.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ But all good!
*Drupal 8 version*:

```php

// This creates a new eform submission.
$eform_submission = \Drupal::entityTypeManager()->getStorage('eform_submission')->create(['type' => 'multiple_choice_question']);
// This loads an existing eform submission.
Expand All @@ -83,6 +82,7 @@ $submitted_eform = \Drupal::entityTypeManager()->getStorage('eform_submission')-
$form = \Drupal::service('entity.form_builder')->getForm($submitted_eform);
// Then we append it to the render array.
$build[] = $form;

```

>>> notes
Expand Down
7 changes: 2 additions & 5 deletions content/slide-180.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@

::: slide

- Prolog
- Why look at Drupal 8
- Custom LMS Drupal 7 architecture
- Features
- Content strategy
- Modules used
- Custom development
- Considerations Building a with Drupal 8
- Architectural differences
- UI Changes
Expand All @@ -37,6 +32,8 @@
- Conclusion <-- **Achievement unlocked**
- Appendix

![Achievement Unlocked](https://s3.amazonaws.com/achgen360/t/FBZ5Ax5Q.png)

:::

::: slide
Expand Down
3 changes: 2 additions & 1 deletion outline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
title: re-architecting with drupal 8
author: Frank Robert Anderson
slides:
- title.md
- slide-010.md # 01 - Prolog - Outline
- introduction.md
- clarity-slide.md
- slide-010.md # 01 - Prolog - Outline
- slide-020.md # 02 - Why look at Drupal 8
- slide-030.md # 03 - Custom LMS Drupal 7 architecture
- slide-040.md # 04 - Basic Drupal architecture
Expand Down

0 comments on commit 17f7238

Please sign in to comment.